Take the tour ×  I have a selfmade init.d script on a Linux box
that worked fine with Debian 4 and Debian 5 but with Debian 6
(fresh install) it gets only executed at system boot but not
before rebooting.  The script is pratically this one:  #
Provides:          selfheal # Required-Start: # Required-Stop: #
X-Start-Before:    mountall # X-Stop-After:      umountfs #
Default-Start:     2 3 4 5 # Default-Stop:      0 1 6 # Short-
Description: selfheal tool # Description:       Saves/restores
the user partition at (re)boot  echo $0 $* sleep 3  # some
useful stuff follows here...  At reboot I see the system
switching to runlevel 6 and unmounting the file systems (see
that X-Stop-After: umountfs above). No sign of life from my
selfheal script.  At system boot however, I see the echo line
and the script is being executed.  I've installed the script
using:  rm /etc/rc*.d/[SK]??selfheal && update-rc.d selfheal
defaults  no errors/warnings there. The symlink exists:
root@intermodul:~# ls -al /etc/rc6.d/ total 12 drwxr