May I ask where this server resides? Is this a home installation or a business?
A ver short explanation about rc#
.d files. There are 7 different run levels in the UNIX/Linux OS.
Level 0 = shutdown
Level 1 = single user mode
Level 2 - 5 = multiuser mode
Level 6 = reboot
Levels 0 and 6 are rather self-explanatory. Level 1 is used for SA work where the system is required to be as quiet as possible. So in this mode, only the /
partition is mounted, and most function/daemons are not running, like X, print services, user logins, networking etc.
Levels 2 - 5 are, like I said, multiuser modes. The purpose of these modes is to allow the SA to control what gets loaded on boot. If set as such, entering level 2 could allow for just a stand alone multiuser system. Entering level 3 could add networking capability, level 3 could add X, etc. You get the idea. For each run level, there is an associated /etc/rc#
When the system boots, one of the files the kernel looks at is /etc/inittab. Within /etc/inittab is an entry called initdefault
. This tells the kernel which run level the system should run at, and defines which rc#
.d to use.
Within the RC#
.d are a selection of either K* or S* files. In the case of run level 0,1 and 6, you'll see mostly K* files, telling the kernel how to gracefully shutdown the system to the appropriate level. In runlevels 2-5, tje appropriate rc[2-5].d will have the startup scripts for the functions required at that run level.
On most systems, these rc directories are filled with synlinks to /etc/init.d, this location varies with distro. This directory contains the actual scripts that are run on startup or shutdown. If you look at any of these scripts, you'll see that they have the code to start, stop or restart the functions that comprise a running system.
Looking at any one of the /etc/rc* directories, you see that the K or S files are of the form S##filename. The ## portion of the file name is to give the kernel the order in which to start these function. As an example, you wouldn't want to start bind before you have a network identity.
Put your script for starting MUD in /etc/init.d, look in /etc/inittab to discover your initdefault level, then add a symlink in the appropriate rc*.d directory.
I don't expect you to move it immediately, but server software should never reside in a user home directory. It should reside in /opt, /usr or /usr/local. Just something to think about when you better understand Linux.
To get a better understanding of the commands available to you, look at Linux Manual Pages
. You might also find this Linux System Admin. Guide
useful. Good luck. -mk