Search A-Z index Help
University of Cambridge Home Physics Dept Home Mike Roses' Home Page TCM Group Home

How to create your own init.d scripts for Suse 9.1

You can use /etc/init.d/skeleton as the template for you service
control script.

For example to setup dhcpd (if you compile it for yourself and do not
use the Suse package):

cp /etc/init.d/skeleton /etc/init.d/dhcpd

vi /etc/init.d/dhcpd

Then run insserv dhcpd to get the soft rc?.d links created based upon
the comments at the top of the dhcpcd (in this case) file:
### BEGIN INIT INFO
# Provides:          dhcpcd
# Required-Start:    $syslog $remote_fs $network
# Should-Start: 
# Required-Stop:     $syslog $remote_fs
# Should-Stop: 
# Default-Start:     3 5
# Default-Stop:      0 1 2 6

Should now all work nicely.