The System V init scripts are a bear to configure by hand. We discussed using chkconfig in this article. Ksysv, part of KDE, provides an easy to use GUI interface. Just drag the services to the appropriate place. The priority number, K/S prefix, and symlinks will all be set up automatically. Backup up all of your old scripts before messing with them, just in case. When you first start up ksysv, you will be asked what type of system you have:
Screenshot of system type question
This particular system is an LFS system, so we’ll chose other:
Screenshot of path choice
Here is the initial listing of the services:
Screenshot of initial setup
Let’s add nfsclient:
Screenshot of nfsclient addition
Finally, let’s add an script that mounts our nfs filesystem:
Screenshot of system type question
Just click save when finished, and all is good. Peek at /etc/rc.d (or wherever) and verify it is all good. Remember that if you mess up these scripts your system won’t boot again!!!