[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem installing an init script with "insserv"



Hello all,

I'm trying to have the script (below) run automatically at each system
shutdown. But it is never called, neither on startup nor on shutdown.
I ran insserv on it and it worked without errors. It also seems to
have the correct links installed:

dh@dotcom:/etc$ find . -name '*dupba*' -printf '%p %l\n'
./rc5.d/K01dupbackup ../init.d/dupbackup
./rc2.d/S01dupbackup ../init.d/dupbackup
./init.d/dupbackup
dh@dotcom:/etc$

So why doesn't this work? It used to work before I upgraded from
stable to testing. I've also played with the Default-Start and -Stop
levels, no change. Permissions are 755 as for all other init.d script.

Thanks,
robert

#!/bin/sh
#
#
### BEGIN INIT INFO
# Provides: dupbackup
# Required-Stop: $local_fs $syslog
# Required-Start:
# Default-Start: 2
# Default-Stop: 5
# Description: Custom crypto backup system
### END INIT INFO


logger -s "Called as $0 $1"
sleep 10 # this should make the script very noticeable

case "$1" in
	start)
		echo "No backup on start-up"
		;;
	stop)
	 	sh /usr/local/bin/dupbackup.sh
		;;
esac


Reply to: