I recently rented a a Virtual Private Server. The best way for me to connect to it is to SSH into it and start a service. When I do this, it works perfectly fine, until I close my SSH program, in which the software stops running. How can I fix this? Thank you.

Recommended Answers

Depends on the operating system on your VPS ant the service in question I guess. If it is Linux you can use the following command to enable e.g. the Apache webserver service which will still run after you log out (on Fedora 15):

/sbin/chkconfig httpd on

Service control is becoming …

Jump to Post

All 2 Replies

Depends on the operating system on your VPS ant the service in question I guess. If it is Linux you can use the following command to enable e.g. the Apache webserver service which will still run after you log out (on Fedora 15):

/sbin/chkconfig httpd on

Service control is becoming a part of systemd these days. See mapping of command here: http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet.

You may want to use cron to execute the task and disable the cron task after it has started executing. Please tell use what admin panel do you use (eg cpanel/plesk) and what operating system are you dealing with (eg centos/ubuntu) and which software stops running.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.