How to add a service to the S runlevel in Debian?

Posted by MasterM on Server Fault See other posts from Server Fault or by MasterM
Published on 2012-06-21T20:42:51Z Indexed on 2012/06/21 21:17 UTC
Read the original article Hit count: 233

Filed under:
|
|
|

I have the following script (what it does exactly is not important):

#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          watchdog_early
# Required-Start:    udev
# Required-Stop:     
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Start watchdog early.
### END INIT INFO

# Do stuff here... 

I insert it into the S runlevel by invoking:

insserv watchdog_early

The aproriate link is created in /etc/rcS.d:

S04watchdog_early -> ../init.d/watchdog_early

and /etc/init.d/watchdog_early is executable (has mode 755).

Despite all this, it is NOT being run at boot. Why?

© Server Fault or respective owner

Related posts about debian

Related posts about boot