Although we try to avoid it, occasionally, the physical machine your Virtual Private Server resides on may occasionally need to be rebooted (usually for hardware or O/S upgrades). If you have custom applications, such as a database, RealServer, or another program that runs a daemon (a program that is always running), the rc file allows you to add a start-up command that will automatically be run after the server reboots.

Creating an rc file

Your Virtual Private Server's rc file is located in the ~/etc/ directory. Although your core services (Web, FTP, E-mail, cron, shell) do not require a start-up command in your rc file, any custom application daemons you install on your Virtual Private Server will need to be added to the ~/etc/rc file so that they will be started up after a server reboot.

The rc file uses a standard UNIX configuration file format. This means that any line that begins with a # character is considered a comment and is ignored by the system. Lines that do not begin with the # symbol will be executed as a shell command.

The following is an example of an rc file for a server with MySQL and RealServer installed.

# Restart MySQL after a reboot
/usr/local/bin/daemon -f /usr/local/bin/virtual /usr/local/mysql/bin/safe_mysqld --pid-file=/usr/local/mysql/var/
# Real Helix Server
~/usr/local/real/Bin/rmserver -m 32 ~/usr/local/real/rmserver.cfg

Please note: the information on this page applies to ITS web hosting plans. It may or may not apply to other environments. If you are looking for a feature described here, or better support from your hosting provider, please consider hosting your site with ITS!

1555 N Naperville/Wheaton Road, Suite 107
Naperville, IL 60563
phone 630.420.2550
fax 630.420.2771