detached process on Centos – Chirag Patel

If you want to run an application from ssh even if you exit ssh session, do the following:

# nohup <application with arguments > &

This will put the process in background and will detach from terminal as well.

Also, edit /etc/rc.local and add above line to execute application from startup.

This works fine with CentOS 6.

Print Friendly, PDF & Email

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.