start daemon on remote server via Jenkins SSH shell script exits mysteriously
问题 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