Package: sysv-rc Version: 2.86.ds1-33 Severity: normal File: /usr/sbin/invoke-rc.d
invoke-rc.d determines the runlevel when invoked, using /sbin/runlevel | sed 's/.*\ //' first off, I have no idea why you're escaping the space, and second, unfortunately, the result is not always correct; as a consequence, invoke-rc.d complains about being invoked during shutdown during system startup, because I asked my system to restart the ntp service via invoke-rc.d whenever the network link status changes (via a little shell script in /etc/network/if-up.d/. See the following boot.log excerpt, for which I've set -x in invoke-rc.d: [...] Sat Oct 21 10:40:56 2006: Cleaning /tmp...done. Sat Oct 21 10:41:17 2006: Cleaning /var/run...done. Sat Oct 21 10:41:18 2006: Cleaning /var/lock...done. Sat Oct 21 10:41:18 2006: Setting up networking.... Sat Oct 21 10:41:19 2006: Configuring network interfaces...Reloading Squid configuration files. Sat Oct 21 10:41:21 2006: done. [now invoke-rc.d is called:] Sat Oct 21 10:41:21 2006: + RUNLEVEL=/sbin/runlevel [...] Sat Oct 21 10:41:21 2006: + INITSCRIPTID=ntp [...] Sat Oct 21 10:41:21 2006: + ACTION=restart [...] Sat Oct 21 10:41:21 2006: + /sbin/runlevel Sat Oct 21 10:41:21 2006: + sed s/.*\ // Sat Oct 21 10:41:21 2006: + RL=6 Sat Oct 21 10:41:21 2006: + test ! 0 Sat Oct 21 10:41:21 2006: + test x6 = x0 Sat Oct 21 10:41:21 2006: + test x6 = x6 Sat Oct 21 10:41:21 2006: + FORCE=yes Sat Oct 21 10:41:21 2006: + RETRY=yes Sat Oct 21 10:41:21 2006: + POLICYHELPER= Sat Oct 21 10:41:21 2006: + BEQUIET= Sat Oct 21 10:41:21 2006: + printerror ---------------------------------------------------- Sat Oct 21 10:41:21 2006: + test x = x Sat Oct 21 10:41:21 2006: + basename /usr/sbin/invoke-rc.d Sat Oct 21 10:41:21 2006: + echo invoke-rc.d: ---------------------------------------------------- Sat Oct 21 10:41:21 2006: invoke-rc.d: ---------------------------------------------------- Sat Oct 21 10:41:21 2006: + printerror WARNING: invoke-rc.d called during shutdown sequence Sat Oct 21 10:41:21 2006: + test x = x Sat Oct 21 10:41:21 2006: + basename /usr/sbin/invoke-rc.d Sat Oct 21 10:41:21 2006: + echo invoke-rc.d: WARNING: invoke-rc.d called during shutdown sequence Sat Oct 21 10:41:21 2006: invoke-rc.d: WARNING: invoke-rc.d called during shutdown sequence Sat Oct 21 10:41:21 2006: + printerror enabling safe mode: initscript policy layer disabled Sat Oct 21 10:41:21 2006: + test x = x Sat Oct 21 10:41:21 2006: + basename /usr/sbin/invoke-rc.d Sat Oct 21 10:41:21 2006: + echo invoke-rc.d: enabling safe mode: initscript policy layer disabled Sat Oct 21 10:41:21 2006: invoke-rc.d: enabling safe mode: initscript policy layer disabled Sat Oct 21 10:41:21 2006: + printerror ---------------------------------------------------- [...] At the time the invoke-rc.d script runs, /sbin/runlevel returns "2 6". -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (750, 'unstable'), (500, 'testing'), (250, 'stable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.17-2-686 Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) sysv-rc depends on no packages. Versions of packages sysv-rc recommends: ii lsb-base 3.1-17 Linux Standard Base 3.1 init scrip -- no debconf information -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems
signature.asc
Description: Digital signature (GPG/PGP)