We have a job executing a shell script (on a slave) to restart one
dev appserver on a remote server if it does not work properly (dont
bother why its not working):
# BUILD_ID=dontKillMe
ssh
us...@some.remote.server exec
/path/to/appserver/force_restart_script arg1
The "force_restart_script" on the
remote server doing the
following:
# find and kill the old appserver process
kill_appserver_script arg1
# start appserver with specified argument
/path/to/appserver/start_appserver_script arg1
At the end, the old appserver process was killed, and the new
appserver process was also terminated. How can i keep this from
happening? The BUILD_ID=dontKillMe in job configureation doesn't
seem to work (that would only keep the ssh from being terminated on
the slave, right?), or I should actually set the BUILD_ID in the
remote ssh shell?
Any help is very much appreciated!
-jv