[Pkg-sysvinit-devel] Bug#585489: There is a loop between service bootlogs and mountnfs

Josh Triplett josh at joshtriplett.org
Thu Jun 10 22:41:18 UTC 2010


Package: initscripts
Version: 2.88dsf-8
Severity: normal

I encountered the same issue when upgrading:

Setting up initscripts (2.88dsf-8) ...
insserv: There is a loop at service bootlogs if started
insserv: There is a loop between service bootlogs and checkroot if started
insserv:  loop involving service checkroot at depth 3
insserv:  loop involving service keyboard-setup at depth 2
insserv:  loop involving service hwclock at depth 6
insserv:  loop involving service hostname at depth 4
insserv:  loop involving service checkfs at depth 6
insserv:  loop involving service mtab at depth 6
insserv: There is a loop between service bootlogs and mountdevsubfs if started
insserv:  loop involving service mountdevsubfs at depth 2
insserv:  loop involving service udev at depth 1
insserv: There is a loop at service gdm3 if started
insserv:  loop involving service ifupdown-clean at depth 6
insserv:  loop involving service bootlogs at depth 4
insserv:  loop involving service gdm3 at depth 3
insserv:  loop involving service network-manager at depth 2
insserv:  loop involving service bootlogd at depth 4
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing initscripts (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initscripts

Petter Reinholdtsen wrote:
> Interesting.  According to my archive wide consistency check of the
> init.d script dependencies, there is no loop in the packages in
> Debian.  This make me suspect there are some obsolete scripts left on
> your machine.
> 
> Can you provide the output from /usr/share/insserv/make-testsuite to
> make it possible to reproduce this issue.

Sure.  Attached as insserv-make-testsuite.log.

> Also, please provide the output from
> 
>   dpkg-query -W -f='${Conffiles}\n' $(dpkg -S /etc/init.d/*|cut -d: -f1|sort -u)|grep init.d
> 
> It will let me know if there are obsolete init.d scripts on your
> machine.

Sure, here you go:

~$ dpkg-query -W -f='${Conffiles}\n' $(dpkg -S /etc/init.d/*|cut -d: -f1|sort -u)|grep init.d | sort
 /etc/init.d/alsa-utils dae4ba07a30d37184976442cfa7a7540
 /etc/init.d/anacron da749415e1ad80f7999e0f67e6dd0959
 /etc/init.d/avahi-daemon 619eb9412486f8e39c309bcbe128950d
 /etc/init.d/bluetooth 45aa06
 /etc/init.d/checkfs.sh d09894bbd475fb497083fed7d20e5a62
 /etc/init.d/checkroot.sh bc2c7ed191bc9a61ed6d3cd2d40f2fe2
 /etc/init.d/console-setup a1383366de939437d22c3973163b0773
 /etc/init.d/cpufrequtils b693a7fed31dbc07dcd3a3e3370e064d
 /etc/init.d/cron a70ad6e317f0cba955d95d1e33842f9f
 /etc/init.d/cups f4412c6b8ae3c5ac5491e418d2a23a2b
 /etc/init.d/dbus 6049c31d1124684489be5e6c0c68474d
 /etc/init.d/fuse d0b8cce6d932e1cd90812ce32c3f81a4
 /etc/init.d/gdm3 ffea4fef8745d5c8ccbddd41088de418
 /etc/init.d/halt 6ae1b3b1b8198567a5e32116077f12a2
 /etc/init.d/hostname.sh 2180072dbb4e2f42f7ad4df4a2f9888d
 /etc/init.d/hwclock.sh 3b6bd378725e76358f902c118bd010ef
 /etc/init.d/hwclockfirst.sh bb5839984d9c402488ae3b5066392dc5
 /etc/init.d/ifupdown 346208729633adf45e2fa3f2bd3b19c6
 /etc/init.d/ifupdown-clean c6fffaae03271f1641920105ce68796b
 /etc/init.d/kbd 7f9ab140ec46d031f8885033ab404e82
 /etc/init.d/keyboard-setup 697f68024eb4d8939fdefc6c9b9404ce
 /etc/init.d/killprocs 5e404d35091fab6c4889302736ed4602
 /etc/init.d/lm-sensors d719b9b3813cf9b7d7f67f69adf477a4
 /etc/init.d/loadcpufreq b5f4b1ebacf9d2783ac280ddb0a915ed
 /etc/init.d/module-init-tools fe69a80c894f97d5e90c8a8068b01a17
 /etc/init.d/mountall-bootclean.sh d4994c72205f718f3b369d4dc69e0b0e
 /etc/init.d/mountall.sh ef4cb0c83f48c87222b6d85c8ea08909
 /etc/init.d/mountdevsubfs.sh a5d23507bef25148fbcd2baccf5aae62
 /etc/init.d/mountkernfs.sh 6cff364db6e71199a5d039e231a4b274
 /etc/init.d/mountnfs-bootclean.sh 6df926cddd77372967e4a1f22c174b88
 /etc/init.d/mountnfs.sh 08d30a08518f65de3dd466027d02ec5e
 /etc/init.d/mountoverflowtmp 066812f55fd49c260af4efb3eed07b96
 /etc/init.d/mtab.sh 779fc73e5c41d6197a3003aa59914816
 /etc/init.d/nethack-common eb8d4dfe294ebb3dc565d1ea442b092e
 /etc/init.d/network-manager ff16e17e89d1aa858485570e90f6f04a
 /etc/init.d/networking 3bb6d34b6a295bb01142d9a667de4b0d
 /etc/init.d/ntp 1593209e2edaef7930940759b07caee1
 /etc/init.d/openbsd-inetd d6c5a849e04ac6def196c326d74faf1b
 /etc/init.d/pcmciautils 49da52b47855709f59f7eec6131335ff
 /etc/init.d/procps 4d6cdf65b5593bba8a6f019d79533073
 /etc/init.d/qemu-kvm abb83ce79305944669b7e75f22f84037
 /etc/init.d/rc.local 2964c1446c6453cdde4213eede97ac38
 /etc/init.d/reboot 1b9db1ef7bfd79b128ef85d5065721a6
 /etc/init.d/rmnologin 3e720aea2c7de0696879cce254b00d87
 /etc/init.d/rsync 9d74671cca3077de30a6cbed26d4cd0e
 /etc/init.d/rsyslog 41b1941cc8839b50c757f096152615b2
 /etc/init.d/schroot 304c8f7a83df1c7929e8d6c7924cf87a
 /etc/init.d/screen-cleanup 7702ad8bd63cbe13b8bb455199435191
 /etc/init.d/sendsigs 090d38cd3fb9657b5d7578c296f2e30a
 /etc/init.d/single dc13cb373c5c098a8fb95424701373e3
 /etc/init.d/stop-bootlogd 4544c7e1a2d0c713d29424d02faad237
 /etc/init.d/stop-bootlogd-single 648d8624e708151500c5e299a6005afe
 /etc/init.d/sudo a30521dfe43acfa6cf9af94b1bd550c5
 /etc/init.d/udev a36185b0ccf79067be9ceff7352b78f4
 /etc/init.d/udev-mtab 11de8619c329da118b99da74af24c908
 /etc/init.d/umountfs f9d52b1f97d9d31e953d58f53fbacd0d
 /etc/init.d/umountnfs.sh 24c50704e727fee0ca2997b38d0939c5
 /etc/init.d/umountroot 66ddb222052697f78d9942ffa35c7505
 /etc/init.d/urandom d0385e199d51b19181b77dc55211ac02
 /etc/init.d/x11-common 33172cfde02f4d3ca3d5185c2d7451f6

- Josh Triplett

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  coreutils                     8.5-1      GNU core utilities
ii  debianutils                   3.2.3      Miscellaneous utilities specific t
ii  libc6                         2.11.1-3   Embedded GNU C Library: Shared lib
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip
ii  mount                         2.17.2-3   Tools for mounting and manipulatin
ii  sysv-rc                       2.88dsf-8  System-V-like runlevel change mech
ii  sysvinit-utils                2.88dsf-8  System-V-like utilities

Versions of packages initscripts recommends:
ii  e2fsprogs                     1.41.12-2  ext2/ext3/ext4 file system utiliti
ii  psmisc                        22.11-1    utilities that use the proc file s

initscripts suggests no packages.

-- no debconf information
-------------- next part --------------
set +C
cat <<'EOF' > $insconf
$local_fs	+mountall +mountoverflowtmp +umountfs
$network	+networking +ifupdown
$named		+named +dnsmasq +lwresd +bind9 $network
$remote_fs	$local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs
$syslog		+rsyslog +sysklogd +syslog-ng +dsyslog +inetutils-syslogd
$portmap	portmap
$time		+hwclock
<interactive>	glibc udev console-screen keymap keyboard-setup console-setup cryptdisks cryptdisks-early checkfs-loop
EOF
set -C

addscript alsa-utils <<'EOF'
### BEGIN INIT INFO
# Provides:          alsa-utils
# Required-Start:    $remote_fs udev
# Required-Stop:     $remote_fs
# Default-Start:     S
# Default-Stop:      0 1 6
# Short-Description: Restore and store ALSA driver settings
# Description:       This script stores and restores mixer levels on
#                    shutdown and bootup.On sysv-rc systems: to
#                    disable storing of mixer levels on shutdown,
#                    remove /etc/rc[06].d/K50alsa-utils.  To disable
#                    restoring of mixer levels on bootup, rename the
#                    "S50alsa-utils" symbolic link in /etc/rcS.d/ to
#                    "K50alsa-utils".
### END INIT INFO
EOF

addscript anacron <<'EOF'
### BEGIN INIT INFO
# Provides:          anacron
# Required-Start:    $remote_fs $syslog $time
# Required-Stop:     $remote_fs $syslog $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Handle anac(h)ronistic cron
### END INIT INFO
EOF

addscript avahi-daemon <<'EOF'
### BEGIN INIT INFO
# Provides:          avahi
# Required-Start:    $remote_fs dbus
# Required-Stop:     $remote_fs dbus
# Should-Start:	     $syslog
# Should-Stop:       $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Avahi mDNS/DNS-SD Daemon
# Description:       Zeroconf daemon for configuring your network 
#                    automatically
### END INIT INFO
EOF

addscript bluetooth <<'EOF'
### BEGIN INIT INFO
# Provides: bluetooth
# Required-Start:    $local_fs $syslog $remote_fs dbus
# Required-Stop:     $local_fs $syslog $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start bluetooth daemons
### END INIT INFO
EOF

addscript bootchart <<'EOF'
### BEGIN INIT INFO
# Provides:          bootchart
# Required-Start:    $remote_fs $all
# Required-Stop:
# Default-Start:     1 2 3 4 5
# Default-Stop:
# Short-Description: Stop bootchartd
# Description:       This script stops the bootchartd daemon after
#                    the system came up.
### END INIT INFO
EOF

addscript bootlogd <<'EOF'
### BEGIN INIT INFO
# Provides:          bootlogd
# Required-Start:    mountdevsubfs
# X-Start-Before:    hostname keymap keyboard-setup procps pcmcia hwclock hwclockfirst hdparm hibernate-cleanup lvm2
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Start or stop bootlogd.
# Description:       Starts or stops the bootlogd log program
#                    which logs boot messages.
### END INIT INFO
EOF

addscript bootlogs <<'EOF'
### BEGIN INIT INFO
# Provides:          bootlogs
# Required-Start:    hostname $local_fs
# Required-Stop:
# Should-Start:      $x-display-manager gdm gdm3 kdm xdm ldm sdm wdm nodm
# Default-Start:     1 2 3 4 5
# Default-Stop:
# Short-Description: Log file handling to be done during bootup.
# Description:       Various things that don't need to be done particularly
#                    early in the boot, just before getty is run.
### END INIT INFO
EOF

addscript bootmisc.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          bootmisc
# Required-Start:    $remote_fs
# Required-Stop:
# Should-Start:      udev
# Default-Start:     S
# Default-Stop:
# Short-Description: Miscellaneous things to be done during bootup.
# Description:       Some cleanup.  Note, it need to run after mountnfs-bootclean.sh.
### END INIT INFO
EOF

addscript checkfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          checkfs
# Required-Start:    checkroot
# Required-Stop:
# Should-Start:      mtab
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Check all filesystems.
### END INIT INFO
EOF

addscript checkroot.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          checkroot
# Required-Start:    mountdevsubfs hostname
# Required-Stop:     
# Should-Start:      keymap hwclockfirst hdparm bootlogd
# Should-stop:
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Check to root file system.
### END INIT INFO
EOF

addscript console-setup <<'EOF'
### BEGIN INIT INFO
# Provides:          console-setup
# Required-Start:    $remote_fs
# Required-Stop:
# Should-Start:      console-screen kbd
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Set console font and keymap
### END INIT INFO
EOF

addscript cpufrequtils <<'EOF'
### BEGIN INIT INFO
# Provides:       cpufrequtils
# Required-Start: $remote_fs loadcpufreq
# Required-Stop:
# Default-Start:  2 3 4 5
# Default-Stop:
# Short-Description: set CPUFreq kernel parameters
# Description: utilities to deal with CPUFreq Linux 
#	kernel support
### END INIT INFO
EOF

addscript cron <<'EOF'
### BEGIN INIT INFO
# Provides:          cron
# Required-Start:    $remote_fs $syslog $time
# Required-Stop:     $remote_fs $syslog $time
# Should-Start:      slapd autofs ypbind nscd
# Should-Stop:       slapd autofs ypbind nscd
# Default-Start:     2 3 4 5
# Default-Stop:      1
# Short-Description: Regular background program processing daemon
# Description:       cron is a standard UNIX program that runs user-specified 
#                    programs at periodic scheduled times. vixie cron adds a 
#                    number of features to the basic UNIX cron, including better
#                    security and more powerful configuration options.
### END INIT INFO
EOF

addscript cups <<'EOF'
### BEGIN INIT INFO
# Provides:          cups
# Required-Start:    $syslog $remote_fs
# Required-Stop:     $syslog $remote_fs
# Should-Start:      $network avahi
# Should-Stop:       $network
# X-Start-Before:    samba
# X-Stop-After:      samba
# Default-Start:     2 3 4 5
# Default-Stop:      1
# Short-Description: CUPS Printing spooler and server
### END INIT INFO
EOF

addscript dbus <<'EOF'
### BEGIN INIT INFO
# Provides:          dbus
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: D-Bus systemwide message bus
# Description:       D-Bus is a simple interprocess messaging system, used
#                    for sending messages between applications.
### END INIT INFO
EOF

addscript fuse <<'EOF'
### BEGIN INIT INFO
# Provides:          fuse
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Filesystem in userspace
# Description:       This file load all what's needed to make fuse work fine
### END INIT INFO
EOF

addscript gdm3 <<'EOF'
### BEGIN INIT INFO
# Provides:          gdm3
# Should-Start:      console-screen acpid bootlogs dbus hal network-manager
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: GNOME Display Manager
# Description:       Debian init script for the GNOME Display Manager
### END INIT INFO
EOF

addscript halt <<'EOF'
### BEGIN INIT INFO
# Provides:          halt
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:      0
# Short-Description: Execute the halt command.
# Description:
### END INIT INFO
EOF

addscript hostname.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          hostname
# Required-Start:
# Required-Stop:
# Should-Start:      glibc
# Default-Start:     S
# Default-Stop:
# Short-Description: Set hostname based on /etc/hostname
# Description:       Read the machines hostname from /etc/hostname, and
#                    update the kernel value with this value.  If
#                    /etc/hostname is empty, the current kernel value
#                    for hostname is used.  If the kernel value is
#                    empty, the value 'localhost' is used.
### END INIT INFO
EOF

addscript hwclock.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          hwclock
# Required-Start:    checkroot
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
### END INIT INFO
EOF

addscript hwclockfirst.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          hwclockfirst
# Required-Start:    mountdevsubfs
# Required-Stop:
# Default-Start:     S
# X-Start-Before:    checkroot
# Default-Stop:
### END INIT INFO
EOF

addscript ifupdown <<'EOF'
### BEGIN INIT INFO
# Provides:          ifupdown
# Required-Start:    ifupdown-clean
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Prepare the system for taking up interfaces.
### END INIT INFO
EOF

addscript ifupdown-clean <<'EOF'
### BEGIN INIT INFO
# Provides:          ifupdown-clean
# Required-Start:    checkroot
# Required-Stop:     
# Default-Start:     S
# Default-Stop:
# Short-Description: Clean old interface status info during boot.
### END INIT INFO
EOF

addscript kbd <<'EOF'
### BEGIN INIT INFO
# Provides:          kbd
# Required-Start:    $remote_fs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Description: Set console screen modes and fonts
# Short-Description:    Prepare console
### END INIT INFO
EOF

addscript keyboard-setup <<'EOF'
### BEGIN INIT INFO
# Provides:          keyboard-setup
# Required-Start:    mountkernfs
# Required-Stop:
# Should-Start:      keymap udev
# X-Start-Before:    checkroot
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Set preliminary keymap
# Description:       Set the console keyboard as early as possible
#                    so during the file systems checks the administrator
#                    can interact.  At this stage of the boot process
#                    only the ASCII symbols are supported.
### END INIT INFO
EOF

addscript killprocs <<'EOF'
### BEGIN INIT INFO
# Provides:          killprocs
# Required-Start:    $local_fs
# Required-Stop:
# Default-Start:     1
# Default-Stop:
# Short-Description: executed by init(8) upon entering runlevel 1 (single).
### END INIT INFO
EOF

addscript lm-sensors <<'EOF'
### BEGIN INIT INFO
# Provides:          lm-sensors
# Required-Start:    $remote_fs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: lm-sensors
# Description:       hardware health monitoring
### END INIT INFO
EOF

addscript loadcpufreq <<'EOF'
### BEGIN INIT INFO
# Provides:          loadcpufreq
# Required-Start:    $remote_fs $syslog
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Load kernel modules needed to enable cpufreq scaling
# Description:       Make it possible to save power by reducing
#                    the CPU speed when there is little to do.
### END INIT INFO
EOF

addscript module-init-tools <<'EOF'
### BEGIN INIT INFO
# Provides:          module-init-tools
# Required-Start:    
# Required-Stop:     
# Should-Start:      checkroot
# Should-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Process /etc/modules.
# Description:       Load the modules listed in /etc/modules.
### END INIT INFO
EOF

addscript mountall-bootclean.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountall-bootclean
# Required-Start:    mountall
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: bootclean after mountall.
# Description:       Clean temporary filesystems after
#                    all local filesystems have been mounted.
### END INIT INFO
EOF

addscript mountall.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountall
# Required-Start:    checkfs
# Required-Stop: 
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount all filesystems.
# Description:
### END INIT INFO
EOF

addscript mountdevsubfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountdevsubfs
# Required-Start:    mountkernfs
# Required-Stop:
# Should-Start:      udev
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount special file systems under /dev.
# Description:       Mount the virtual filesystems the kernel provides
#                    that ordinarily live under the /dev filesystem.
### END INIT INFO
EOF

addscript mountkernfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountkernfs
# Required-Start:
# Required-Stop:
# Should-Start:      glibc
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount kernel virtual file systems.
# Description:       Mount initial set of virtual filesystems the kernel
#                    provides and that are required by everything.
### END INIT INFO
EOF

addscript mountnfs-bootclean.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountnfs-bootclean
# Required-Start:    $local_fs mountnfs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: bootclean after mountnfs.
# Description:       Clean temporary filesystems after
#                    network filesystems have been mounted.
### END INIT INFO
EOF

addscript mountnfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountnfs
# Required-Start:    $local_fs
# Required-Stop:
# Should-Start:      $network $portmap nfs-common  udev-mtab
# Default-Start:     S
# Default-Stop:
# Short-Description: Wait for network file systems to be mounted
# Description:       Network file systems are mounted by
#                    /etc/network/if-up.d/mountnfs in the background
#                    when interfaces are brought up; this script waits
#                    for them to be mounted before carrying on.
### END INIT INFO
EOF

addscript mountoverflowtmp <<'EOF'
### BEGIN INIT INFO
# Provides:          mountoverflowtmp
# Required-Start:    mountall-bootclean
# Required-Stop:     umountfs
# Default-Start:     S
# Default-Stop:
# Short-Description: mount emergency /tmp.
# Description:       Mount a tmpfs on /tmp if there would
#                    otherwise be too little space to log in.
### END INIT INFO
EOF

addscript mtab.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mtab
# Required-Start:    checkroot
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Update mtab file.
# Description:       Update the mount program's mtab file after
#                    all local filesystems have been mounted.
### END INIT INFO
EOF

addscript nethack-common <<'EOF'
### BEGIN INIT INFO
# Provides:          nethack-common
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Nethack save-file recovery script for Debian
### END INIT INFO
EOF

addscript network-manager <<'EOF'
### BEGIN INIT INFO
# Provides:          network-manager
# Required-Start:    $remote_fs dbus udev
# Required-Stop:     $remote_fs dbus udev
# Should-Start:	     $syslog
# Should-Stop:       $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: network connection manager
# Description:       Daemon for automatically switching network 
#		     connections to the best available connection.
### END INIT INFO
EOF

addscript networking <<'EOF'
### BEGIN INIT INFO
# Provides:          networking
# Required-Start:    mountkernfs $local_fs
# Required-Stop:     $local_fs
# Should-Start:      ifupdown
# Should-Stop:       ifupdown
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Raise network interfaces.
### END INIT INFO
EOF

addscript ntp <<'EOF'
### BEGIN INIT INFO
# Provides:        ntp
# Required-Start:  $network $remote_fs $syslog
# Required-Stop:   $network $remote_fs $syslog
# Default-Start:   2 3 4 5
# Default-Stop: 
# Short-Description: Start NTP daemon
### END INIT INFO
EOF

addscript openbsd-inetd <<'EOF'
### BEGIN INIT INFO
# Provides:          openbsd-inetd
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Should-Start:      $syslog
# Should-Stop:       $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start or stop the inetd daemon.
### END INIT INFO
EOF

addscript pcmciautils <<'EOF'
### BEGIN INIT INFO
# Provides:          pcmcia
# Required-Start:    $local_fs
# Required-Stop:
# Should-Start:      udev
# X-Start-Before:    networking
# Default-Start:     S
# Default-Stop:
# Short-Description: PCMCIA support
# Description:       This service provides PCMCIA hardware support for
#                    systems running Linux >= 2.6.13-rc1.
### END INIT INFO
EOF

addscript procps <<'EOF'
### BEGIN INIT INFO
# Provides:          procps
# Required-Start:    mountkernfs $local_fs
# Required-Stop:
# Should-Start:      udev module-init-tools
# Default-Start:     S
# Default-Stop:
# Short-Description: Configure kernel parameters at boottime
# Description:  Loads kernel parameters that are specified in /etc/sysctl.conf
### END INIT INFO
EOF

addscript qemu-kvm <<'EOF'
### BEGIN INIT INFO
# Provides:          qemu-kvm kvm
# Required-Start:    
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: KVM init script
# Description:       This script loads the kernel modules needed by kvm
### END INIT INFO
EOF

addscript rc.local <<'EOF'
### BEGIN INIT INFO
# Provides:          rc.local
# Required-Start:    $remote_fs $syslog $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO
EOF

addscript reboot <<'EOF'
### BEGIN INIT INFO
# Provides:          reboot
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:      6
# Short-Description: Execute the reboot command.
# Description:
### END INIT INFO
EOF

addscript rmnologin <<'EOF'
### BEGIN INIT INFO
# Provides:          rmnologin
# Required-Start:    $remote_fs $all
# Required-Stop: 
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Remove /etc/nologin at boot
# Description:       This script removes the /etc/nologin file as the
#                    last step in the boot process, if DELAYLOGIN=yes.
#                    If DELAYLOGIN=no, /etc/nologin was not created by
#                    bootmisc earlier in the boot process.
### END INIT INFO
EOF

addscript rsync <<'EOF'
### BEGIN INIT INFO
# Provides:          rsyncd
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $named
# Default-Start:     2 3 4 5
# Default-Stop:      
# Short-Description: fast remote file copy program daemon
# Description:       rsync is a program that allows files to be copied to and
#                    from remote machines in much the same way as rcp.
#                    This provides rsyncd daemon functionality.
### END INIT INFO
EOF

addscript rsyslog <<'EOF'
### BEGIN INIT INFO
# Provides:          rsyslog
# Required-Start:    $remote_fs $time
# Required-Stop:     umountnfs $time
# X-Stop-After:      sendsigs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: enhanced syslogd
# Description:       Rsyslog is an enhanced multi-threaded syslogd.
#                    It is quite compatible to stock sysklogd and can be 
#                    used as a drop-in replacement.
### END INIT INFO
EOF

addscript schroot <<'EOF'
### BEGIN INIT INFO
# Provides:          schroot
# Required-Start:    $local_fs $network $remote_fs
# Required-Stop:
# Should-Start:      lvm
# Should-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Recover schroot sessions.
# Description:       Activate any persistent sessions after a reboot.
#                    Setup scripts will be run to mount filesystems and
#                    bring the chroot back to a working state.
### END INIT INFO
EOF

addscript screen-cleanup <<'EOF'
### BEGIN INIT INFO
# Provides:          screen-cleanup
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     S
# Default-Stop:
# Short-Description: screen sessions cleaning
### END INIT INFO
EOF

addscript sendsigs <<'EOF'
### BEGIN INIT INFO
# Provides:          sendsigs
# Required-Start:    
# Required-Stop:     umountnfs
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Kill all remaining processes.
# Description: 
### END INIT INFO
EOF

addscript single <<'EOF'
### BEGIN INIT INFO
# Provides:          single
# Required-Start:    $local_fs $all killprocs
# Required-Stop:
# Default-Start:     1
# Default-Stop:
# Short-Description: executed by init(8) upon entering runlevel 1 (single).
### END INIT INFO
EOF

addscript stop-bootlogd <<'EOF'
### BEGIN INIT INFO
# Provides:          stop-bootlogd
# Required-Start:    $local_fs $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Stop bootlogd
# Description:       See the init.d/bootlogd script
### END INIT INFO
EOF

addscript stop-bootlogd-single <<'EOF'
### BEGIN INIT INFO
# Provides:          stop-bootlogd-single
# Required-Start:    $local_fs $all
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Stop bootlogd in single user mode
# Description:       See the init.d/bootlogd script
### END INIT INFO
EOF

addscript sudo <<'EOF'
### BEGIN INIT INFO
# Provides:          sudo
# Required-Start:    $local_fs $remote_fs
# Required-Stop:
# X-Start-Before:    rmnologin
# Default-Start:     2 3 4 5
# Default-Stop:
### END INIT INFO
EOF

addscript udev <<'EOF'
### BEGIN INIT INFO
# Provides:          udev
# Required-Start:    mountkernfs 
# Required-Stop:     
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Start udevd, populate /dev and load drivers.
### END INIT INFO
EOF

addscript udev-mtab <<'EOF'
### BEGIN INIT INFO
# Provides:          udev-mtab
# Required-Start:    udev $local_fs
# Required-Stop:     
# Default-Start:     S
# Default-Stop:
# Short-Description: Add to mtab the entry for /dev.
### END INIT INFO
EOF

addscript umountfs <<'EOF'
### BEGIN INIT INFO
# Provides:          umountfs
# Required-Start:
# Required-Stop:     umountroot
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Turn off swap and unmount all local file systems.
# Description:
### END INIT INFO
EOF

addscript umountnfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          umountnfs
# Required-Start:
# Required-Stop:     umountfs
# Should-Stop:       $network $portmap nfs-common
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Unmount all network filesystems except the root fs.
# Description:       Also unmounts all virtual filesystems (proc,
#                    devpts, usbfs, sysfs) that are not mounted at the
#                    top level.
### END INIT INFO
EOF

addscript umountroot <<'EOF'
### BEGIN INIT INFO
# Provides:          umountroot
# Required-Start:
# Required-Stop:
# Should-Stop:       halt reboot kexec
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Mount the root filesystem read-only.
### END INIT INFO
EOF

addscript urandom <<'EOF'
### BEGIN INIT INFO
# Provides:          urandom
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Save and restore random seed between restarts.
# Description:       This script saves the random seed between restarts.
#                    It is called from the boot, halt and reboot scripts.
### END INIT INFO
EOF

addscript x11-common <<'EOF'
### BEGIN INIT INFO
# Provides:          x11-common
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:
### END INIT INFO
EOF

cd $tmpdir/etc
mkdir rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d
ln -s ../init.d/alsa-utils rc0.d/K01alsa-utils
ln -s ../init.d/anacron rc0.d/K01anacron
ln -s ../init.d/avahi-daemon rc0.d/K01avahi-daemon
ln -s ../init.d/bluetooth rc0.d/K01bluetooth
ln -s ../init.d/fuse rc0.d/K01fuse
ln -s ../init.d/gdm3 rc0.d/K01gdm3
ln -s ../init.d/network-manager rc0.d/K01network-manager
ln -s ../init.d/openbsd-inetd rc0.d/K01openbsd-inetd
ln -s ../init.d/qemu-kvm rc0.d/K01qemu-kvm
ln -s ../init.d/urandom rc0.d/K01urandom
ln -s ../init.d/sendsigs rc0.d/K02sendsigs
ln -s ../init.d/rsyslog rc0.d/K03rsyslog
ln -s ../init.d/hwclock.sh rc0.d/K04hwclock.sh
ln -s ../init.d/umountnfs.sh rc0.d/K04umountnfs.sh
ln -s ../init.d/networking rc0.d/K05networking
ln -s ../init.d/ifupdown rc0.d/K06ifupdown
ln -s ../init.d/umountfs rc0.d/K07umountfs
ln -s ../init.d/umountroot rc0.d/K08umountroot
ln -s ../init.d/halt rc0.d/K09halt
ln -s ../init.d/anacron rc1.d/K01anacron
ln -s ../init.d/avahi-daemon rc1.d/K01avahi-daemon
ln -s ../init.d/bluetooth rc1.d/K01bluetooth
ln -s ../init.d/cron rc1.d/K01cron
ln -s ../init.d/cups rc1.d/K01cups
ln -s ../init.d/gdm3 rc1.d/K01gdm3
ln -s ../init.d/network-manager rc1.d/K01network-manager
ln -s ../init.d/openbsd-inetd rc1.d/K01openbsd-inetd
ln -s ../init.d/qemu-kvm rc1.d/K01qemu-kvm
ln -s ../init.d/rsyslog rc1.d/K03rsyslog
ln -s ../init.d/bootlogs rc1.d/S01bootlogs
ln -s ../init.d/killprocs rc1.d/S01killprocs
ln -s ../init.d/single rc1.d/S02single
ln -s ../init.d/bootchart rc1.d/S05bootchart
ln -s ../init.d/bootlogs rc2.d/S01bootlogs
ln -s ../init.d/nethack-common rc2.d/S01nethack-common
ln -s ../init.d/qemu-kvm rc2.d/S01qemu-kvm
ln -s ../init.d/rsyslog rc2.d/S01rsyslog
ln -s ../init.d/sudo rc2.d/S01sudo
ln -s ../init.d/anacron rc2.d/S02anacron
ln -s ../init.d/cron rc2.d/S02cron
ln -s ../init.d/dbus rc2.d/S02dbus
ln -s ../init.d/loadcpufreq rc2.d/S02loadcpufreq
ln -s ../init.d/ntp rc2.d/S02ntp
ln -s ../init.d/openbsd-inetd rc2.d/S02openbsd-inetd
ln -s ../init.d/rsync rc2.d/S02rsync
ln -s ../init.d/avahi-daemon rc2.d/S03avahi-daemon
ln -s ../init.d/bluetooth rc2.d/S03bluetooth
ln -s ../init.d/cpufrequtils rc2.d/S03cpufrequtils
ln -s ../init.d/network-manager rc2.d/S03network-manager
ln -s ../init.d/cups rc2.d/S04cups
ln -s ../init.d/gdm3 rc2.d/S04gdm3
ln -s ../init.d/bootchart rc2.d/S05bootchart
ln -s ../init.d/rc.local rc2.d/S05rc.local
ln -s ../init.d/rmnologin rc2.d/S05rmnologin
ln -s ../init.d/stop-bootlogd rc2.d/S05stop-bootlogd
ln -s ../init.d/bootlogs rc3.d/S01bootlogs
ln -s ../init.d/nethack-common rc3.d/S01nethack-common
ln -s ../init.d/qemu-kvm rc3.d/S01qemu-kvm
ln -s ../init.d/rsyslog rc3.d/S01rsyslog
ln -s ../init.d/sudo rc3.d/S01sudo
ln -s ../init.d/anacron rc3.d/S02anacron
ln -s ../init.d/cron rc3.d/S02cron
ln -s ../init.d/dbus rc3.d/S02dbus
ln -s ../init.d/loadcpufreq rc3.d/S02loadcpufreq
ln -s ../init.d/ntp rc3.d/S02ntp
ln -s ../init.d/openbsd-inetd rc3.d/S02openbsd-inetd
ln -s ../init.d/rsync rc3.d/S02rsync
ln -s ../init.d/avahi-daemon rc3.d/S03avahi-daemon
ln -s ../init.d/bluetooth rc3.d/S03bluetooth
ln -s ../init.d/cpufrequtils rc3.d/S03cpufrequtils
ln -s ../init.d/network-manager rc3.d/S03network-manager
ln -s ../init.d/cups rc3.d/S04cups
ln -s ../init.d/gdm3 rc3.d/S04gdm3
ln -s ../init.d/bootchart rc3.d/S05bootchart
ln -s ../init.d/rc.local rc3.d/S05rc.local
ln -s ../init.d/rmnologin rc3.d/S05rmnologin
ln -s ../init.d/stop-bootlogd rc3.d/S05stop-bootlogd
ln -s ../init.d/bootlogs rc4.d/S01bootlogs
ln -s ../init.d/nethack-common rc4.d/S01nethack-common
ln -s ../init.d/qemu-kvm rc4.d/S01qemu-kvm
ln -s ../init.d/rsyslog rc4.d/S01rsyslog
ln -s ../init.d/sudo rc4.d/S01sudo
ln -s ../init.d/anacron rc4.d/S02anacron
ln -s ../init.d/cron rc4.d/S02cron
ln -s ../init.d/dbus rc4.d/S02dbus
ln -s ../init.d/loadcpufreq rc4.d/S02loadcpufreq
ln -s ../init.d/ntp rc4.d/S02ntp
ln -s ../init.d/openbsd-inetd rc4.d/S02openbsd-inetd
ln -s ../init.d/rsync rc4.d/S02rsync
ln -s ../init.d/avahi-daemon rc4.d/S03avahi-daemon
ln -s ../init.d/bluetooth rc4.d/S03bluetooth
ln -s ../init.d/cpufrequtils rc4.d/S03cpufrequtils
ln -s ../init.d/network-manager rc4.d/S03network-manager
ln -s ../init.d/cups rc4.d/S04cups
ln -s ../init.d/gdm3 rc4.d/S04gdm3
ln -s ../init.d/bootchart rc4.d/S05bootchart
ln -s ../init.d/rc.local rc4.d/S05rc.local
ln -s ../init.d/rmnologin rc4.d/S05rmnologin
ln -s ../init.d/stop-bootlogd rc4.d/S05stop-bootlogd
ln -s ../init.d/bootlogs rc5.d/S01bootlogs
ln -s ../init.d/nethack-common rc5.d/S01nethack-common
ln -s ../init.d/qemu-kvm rc5.d/S01qemu-kvm
ln -s ../init.d/rsyslog rc5.d/S01rsyslog
ln -s ../init.d/sudo rc5.d/S01sudo
ln -s ../init.d/anacron rc5.d/S02anacron
ln -s ../init.d/cron rc5.d/S02cron
ln -s ../init.d/dbus rc5.d/S02dbus
ln -s ../init.d/loadcpufreq rc5.d/S02loadcpufreq
ln -s ../init.d/ntp rc5.d/S02ntp
ln -s ../init.d/openbsd-inetd rc5.d/S02openbsd-inetd
ln -s ../init.d/rsync rc5.d/S02rsync
ln -s ../init.d/avahi-daemon rc5.d/S03avahi-daemon
ln -s ../init.d/bluetooth rc5.d/S03bluetooth
ln -s ../init.d/cpufrequtils rc5.d/S03cpufrequtils
ln -s ../init.d/network-manager rc5.d/S03network-manager
ln -s ../init.d/cups rc5.d/S04cups
ln -s ../init.d/gdm3 rc5.d/S04gdm3
ln -s ../init.d/bootchart rc5.d/S05bootchart
ln -s ../init.d/rc.local rc5.d/S05rc.local
ln -s ../init.d/rmnologin rc5.d/S05rmnologin
ln -s ../init.d/stop-bootlogd rc5.d/S05stop-bootlogd
ln -s ../init.d/alsa-utils rc6.d/K01alsa-utils
ln -s ../init.d/anacron rc6.d/K01anacron
ln -s ../init.d/avahi-daemon rc6.d/K01avahi-daemon
ln -s ../init.d/bluetooth rc6.d/K01bluetooth
ln -s ../init.d/fuse rc6.d/K01fuse
ln -s ../init.d/gdm3 rc6.d/K01gdm3
ln -s ../init.d/network-manager rc6.d/K01network-manager
ln -s ../init.d/openbsd-inetd rc6.d/K01openbsd-inetd
ln -s ../init.d/qemu-kvm rc6.d/K01qemu-kvm
ln -s ../init.d/urandom rc6.d/K01urandom
ln -s ../init.d/sendsigs rc6.d/K02sendsigs
ln -s ../init.d/rsyslog rc6.d/K03rsyslog
ln -s ../init.d/hwclock.sh rc6.d/K04hwclock.sh
ln -s ../init.d/umountnfs.sh rc6.d/K04umountnfs.sh
ln -s ../init.d/networking rc6.d/K05networking
ln -s ../init.d/ifupdown rc6.d/K06ifupdown
ln -s ../init.d/umountfs rc6.d/K07umountfs
ln -s ../init.d/umountroot rc6.d/K08umountroot
ln -s ../init.d/reboot rc6.d/K09reboot
ln -s ../init.d/mountkernfs.sh rcS.d/S01mountkernfs.sh
ln -s ../init.d/udev rcS.d/S02udev
ln -s ../init.d/mountdevsubfs.sh rcS.d/S03mountdevsubfs.sh
ln -s ../init.d/bootlogd rcS.d/S04bootlogd
ln -s ../init.d/keyboard-setup rcS.d/S05keyboard-setup
ln -s ../init.d/hostname.sh rcS.d/S06hostname.sh
ln -s ../init.d/hwclockfirst.sh rcS.d/S06hwclockfirst.sh
ln -s ../init.d/checkroot.sh rcS.d/S07checkroot.sh
ln -s ../init.d/hwclock.sh rcS.d/S08hwclock.sh
ln -s ../init.d/ifupdown-clean rcS.d/S08ifupdown-clean
ln -s ../init.d/module-init-tools rcS.d/S08module-init-tools
ln -s ../init.d/mtab.sh rcS.d/S08mtab.sh
ln -s ../init.d/checkfs.sh rcS.d/S09checkfs.sh
ln -s ../init.d/ifupdown rcS.d/S10ifupdown
ln -s ../init.d/mountall.sh rcS.d/S10mountall.sh
ln -s ../init.d/mountall-bootclean.sh rcS.d/S11mountall-bootclean.sh
ln -s ../init.d/mountoverflowtmp rcS.d/S12mountoverflowtmp
ln -s ../init.d/pcmciautils rcS.d/S13pcmciautils
ln -s ../init.d/procps rcS.d/S13procps
ln -s ../init.d/udev-mtab rcS.d/S13udev-mtab
ln -s ../init.d/x11-common rcS.d/S13x11-common
ln -s ../init.d/networking rcS.d/S14networking
ln -s ../init.d/mountnfs.sh rcS.d/S15mountnfs.sh
ln -s ../init.d/mountnfs-bootclean.sh rcS.d/S16mountnfs-bootclean.sh
ln -s ../init.d/kbd rcS.d/S17kbd
ln -s ../init.d/console-setup rcS.d/S18console-setup
ln -s ../init.d/alsa-utils rcS.d/S19alsa-utils
ln -s ../init.d/bootmisc.sh rcS.d/S19bootmisc.sh
ln -s ../init.d/fuse rcS.d/S19fuse
ln -s ../init.d/lm-sensors rcS.d/S19lm-sensors
ln -s ../init.d/schroot rcS.d/S19schroot
ln -s ../init.d/screen-cleanup rcS.d/S19screen-cleanup
ln -s ../init.d/urandom rcS.d/S19urandom
ln -s ../init.d/stop-bootlogd-single rcS.d/S20stop-bootlogd-single

list_rclinks


More information about the Pkg-sysvinit-devel mailing list