Editing startup files

I do the following in my Red Hat-based installation (which uses a Sys-V style /etc/rc.d/rcX.d arrangement) :

/etc/rc.d/init.d/kerneld :

#!/bin/sh

# run kerneld

# This must be executed *after* /usr is mounted.
# This means is /usr is NFS-mounted, it needs to
# run after networking and NFS mounts are up.

. /etc/rc.d/init.d/functions

[ -x /sbin/kerneld ] || exit 0

case "$1" in
        start)
                echo -n "Starting kerneld services : "
                /sbin/depmod -a && echo -n "depmod "
                /sbin/kerneld && echo "kerneld"
                ;;
        stop)
                ;;
        *)
                echo "Usage: $0 {start|stop}"
                exit 1
esac

exit 0

Then :

cd /etc/rc.d/rc3.d
ln -s ../init.d/kerneld S01kerneld

(do the same for any other runlevels you may use, like 5 if you run xdm)


andrew@unico.com.au

Last changed: Sun May 5 10:49:48 1996 by Andrew J Cosgriff