I have a build job on jenkins that is building my project and after it is done, it opens an ssh shell script on a remote server and transfers files and then stop and starts a daemon.
When I stop and start the daemon from the command line on a RHEL server, it executes just fine. When the job executes in jenkins, there are no errors.
The daemon stops fine and it starts fine. But shortly after starting, the daemon dies suddenly.
sudo service daemonName stop
# transfer files.
sudo service daemonName start
I'm sure that the problem isn't pathing
Does anyone know what could be special about the way Jenkins is executing the ssh shell script that would cause the daemon start to not fully complete?
sleep 10000to the shell script in Jenkins to see whether it runs longer when the invoking shell isn't closed? Have you tried comparingenvoutput in Jenkins and the shell? If it's a homegrown daemon, it might be affected by things like locale. – Daniel Beck May 21 '13 at 18:43