The appearance is that as long as the process is running, the ssh session will not terminate. It will eventually timeout, but not terminate on it own even when the service command exits with a "0". If I run the command:
service jbossas7.1 stop while the Jenkins job is still connected and after the service has successfully started, it will terminate the connection and the job will return with a success status. How do I get the service started and the ssh session to terminate when the service starts. On Tuesday, November 4, 2014 12:11 PM, Eric Wood <eric.w...@rocketmail.com> wrote: I am attempting to stop and start a JBOSS service on a remote server and I am using the Publish over SSH plugin for this purpose. I am running the service command service jbossas7.1 start I can see it starting up, but the plugin does not seem to disconnect after a successful startup. Eventually the ssh connect timeouts and the build terminates in an UNSTABLE state. Any idea how I can resolve this issue? The run line in the service script looks like this: su -s /bin/sh $JBOSS_USER -c "sh $JBOSS_HOME/bin/standalone.sh -c appConfig.xml -b 0.0.0.0" 2>&1 > /tmp/jboss7.log & Thanks, Eric -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.