[Pkg-sysvinit-devel] Bug#588868: sysv-rc: update-rc.d should support empty Default-Start
Thue Janus Kristensen
thuejk at gmail.com
Mon Jul 12 21:27:09 UTC 2010
Package: sysv-rc
Version: 2.88dsf-11
Severity: important
I have a backup script on my desktop PC, which should run only on system shutdown (runlevel 0).
So I have written /etc/init.d/backup-thuehome.sh , with an LSB header including
# Default-Start:
# Default-Stop: 0
But when I try to use it, it fails because the init system won't
accept an empty Default-Start. For example running update-rc.d with an
empty Default-State, or removing Default-Start completely, gives me:
t at h ~> sudo update-rc.d backup-thuehome.sh enable
update-rc.d: using dependency based boot sequencing
update-rc.d: error: backup-thuehome.sh Default-Start contains no runlevels, aborting.
Even worse, when manually adding a symlink to /etc/rc0.d , then the
script silently refuses to run, without an error being logged to
syslog or the console! (this part is why I added the important
severity. Error handling feedback is very important!)
My init scipt works fine if a add for example
# Default-Start: 3
Regards Thue
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages sysv-rc depends on:
ii debconf [debconf-2.0] 1.5.33 Debian configuration management sy
ii insserv 1.14.0-2 Tool to organize boot sequence usi
ii sysvinit-utils 2.88dsf-11 System-V-like utilities
Versions of packages sysv-rc recommends:
ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip
Versions of packages sysv-rc suggests:
pn bum <none> (no description available)
pn sysv-rc-conf <none> (no description available)
-- debconf information:
sysv-rc/unable-to-convert:
* sysv-rc/convert-legacy: true
More information about the Pkg-sysvinit-devel
mailing list