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

Leave a Reply

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