Reputation: 344
I am running jenkins on ec2 instance and my process gets killed when I close the putty session.Is there anyway I could run jenkins even after closing the session?
I run jenkins with
java -jar jenkins.war &
Any help would be appreciated.
Upvotes: 0
Views: 143
Reputation: 1745
Try putting a "nohup" in front of it, like so.
nohup java -jar jenkins.war &
Edit: To add to that, what you should really do is add it as a service in a supported way for the OS you're running, so that it starts when the instance is booted.
Upvotes: 1