Hi all, I'm ready to ask this on another list too, but let me give it a try.
I wanted to setup some custom boot tasks in /etc/rc.local, which is said to be
the right place for it. However, it appears this script is executed twice when
booting into runlevel 2 !
It's a Debian Sid system, daily updated, amd64 stock kernel, and nothing
special installed (i hope).
This is how i tested with /etc/rc.local:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
log=/tmp/log
echo "----------- /etc/rc.local start -----------" >> $log
date >> $log
echo "Runlevel: $RUNLEVEL" >> $log
echo "PPID: " $PPID >> $log
echo "Process environment:" >> $log
ps e -p $PPID >> $log
echo "All processes:" >> $log
ps aux >> $log
pstree >> $log
echo "----------- /etc/rc.local stop -----------" >> $log
(script end)
This is kind of overkill, but i wanted to ensure i don't miss some detail.
Now, this is the output, right after booting into runlevel 2 (only into
textconsole, X session remporarily disabled):
----------- /etc/rc.local start -----------
Wed Dec 2 07:12:03 CET 2009
Runlevel: 2
PPID: 1829
Process environment:
PID TTY STAT TIME COMMAND
1829 ? S 0:00 /bin/sh /etc/rc2.d/S99rc.local start
CONSOLE=/dev/console SELINUX_INIT=YES TERM=linux rootmnt=/root
INIT_VERSION=sysvinit-2.86 init=/sbin/init PATH=/sbin:/usr/sbin:/bin:/usr/bin
runlevel=2 RUNLEVEL=2 PWD=/ VERBOSE=yes previous=N PREVLEVEL=N SHLVL=1 HOME=/
BOOT_IMAGE=/boot/vmlinuz-2.6.31-1-amd64 _=/etc/rc2.d/S99rc.local
All processes:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 3.0 0.0 10328 752 ? Ss 07:11 0:00 init [2]
root 2 0.0 0.0 0 0 ? S< 07:11 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 07:11 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? S< 07:11 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 07:11 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S< 07:11 0:00 [migration/1]
root 7 0.0 0.0 0 0 ? S< 07:11 0:00 [ksoftirqd/1]
root 8 0.0 0.0 0 0 ? S< 07:11 0:00 [watchdog/1]
root 9 0.0 0.0 0 0 ? S< 07:11 0:00 [events/0]
root 10 0.1 0.0 0 0 ? S< 07:11 0:00 [events/1]
root 11 0.0 0.0 0 0 ? S< 07:11 0:00 [cpuset]
root 12 0.0 0.0 0 0 ? S< 07:11 0:00 [khelper]
root 13 0.0 0.0 0 0 ? S< 07:11 0:00 [netns]
root 14 0.0 0.0 0 0 ? S< 07:11 0:00 [async/mgr]
root 15 0.0 0.0 0 0 ? S< 07:11 0:00 [kintegrityd/0]
root 16 0.0 0.0 0 0 ? S< 07:11 0:00 [kintegrityd/1]
root 17 0.0 0.0 0 0 ? S< 07:11 0:00 [kblockd/0]
root 18 0.0 0.0 0 0 ? S< 07:11 0:00 [kblockd/1]
root 19 0.0 0.0 0 0 ? S< 07:11 0:00 [kacpid]
root 20 0.0 0.0 0 0 ? S< 07:11 0:00 [kacpi_notify]
root 21 0.0 0.0 0 0 ? S< 07:11 0:00 [kacpi_hotplug]
root 22 0.0 0.0 0 0 ? S< 07:11 0:00 [ksuspend_usbd]
root 23 0.0 0.0 0 0 ? S< 07:11 0:00 [khubd]
root 24 0.0 0.0 0 0 ? S< 07:11 0:00 [kseriod]
root 25 0.0 0.0 0 0 ? S< 07:11 0:00 [kondemand/0]
root 26 0.0 0.0 0 0 ? S< 07:11 0:00 [kondemand/1]
root 27 0.0 0.0 0 0 ? S 07:11 0:00 [khungtaskd]
root 28 0.0 0.0 0 0 ? S 07:11 0:00 [pdflush]
root 29 0.0 0.0 0 0 ? S 07:11 0:00 [pdflush]
root 30 0.0 0.0 0 0 ? S< 07:11 0:00 [kswapd0]
root 31 0.0 0.0 0 0 ? S< 07:11 0:00 [aio/0]
root 32 0.0 0.0 0 0 ? S< 07:11 0:00 [aio/1]
root 33 0.0 0.0 0 0 ? S< 07:11 0:00 [crypto/0]
root 34 0.0 0.0 0 0 ? S< 07:11 0:00 [crypto/1]
root 202 0.0 0.0 0 0 ? S< 07:11 0:00 [ata/0]
root 203 0.0 0.0 0 0 ? S< 07:11 0:00 [ata/1]
root 204 0.0 0.0 0 0 ? S< 07:11 0:00 [ata_aux]
root 215 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_0]
root 216 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_1]
root 217 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_2]
root 218 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_3]
root 219 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_4]
root 220 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_5]
root 286 0.0 0.0 0 0 ? S< 07:11 0:00
[usbhid_resumer]
root 316 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 399 0.5 0.0 17052 1204 ? S<s 07:11 0:00 udevd --daemon
root 545 0.0 0.0 17048 1096 ? S< 07:11 0:00 udevd --daemon
root 546 0.0 0.0 17048 1096 ? S< 07:11 0:00 udevd --daemon
root 588 0.0 0.0 0 0 ? S< 07:11 0:00 [kpsmoused]
root 599 0.0 0.0 0 0 ? S< 07:11 0:00 [edac-poller]
root 643 0.0 0.0 0 0 ? S< 07:11 0:00 [hd-audio0]
root 1066 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 1067 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 1070 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 1071 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 1072 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
daemon 1138 0.0 0.0 8028 532 ? Ss 07:11 0:00 /sbin/portmap
root 1150 0.0 0.0 0 0 ? S< 07:11 0:00 [rpciod/0]
root 1151 0.0 0.0 0 0 ? S< 07:11 0:00 [rpciod/1]
root 1153 0.0 0.0 0 0 ? S< 07:11 0:00 [kslowd]
root 1154 0.0 0.0 0 0 ? S< 07:11 0:00 [kslowd]
root 1155 0.0 0.0 0 0 ? S< 07:11 0:00 [nfsiod]
root 1161 0.0 0.0 26968 596 ? Ss 07:11 0:00
/usr/sbin/rpc.idmapd
root 1332 0.5 0.0 17632 1708 ? Ss 07:11 0:00 /bin/sh
/etc/init.d/rc 2
root 1355 0.0 0.0 0 0 ? S< 07:11 0:00
[kconservative/0]
root 1356 0.0 0.0 0 0 ? S< 07:11 0:00
[kconservative/1]
root 1407 1.0 0.0 19600 932 ? Ss 07:11 0:00
/usr/sbin/syslog-ng -p /var/run/syslog-ng.pid
root 1418 0.0 0.0 3828 552 ? Ss 07:11 0:00 /usr/sbin/acpid
104 1428 0.5 0.0 23336 928 ? Ss 07:11 0:00
/usr/bin/dbus-daemon --system
avahi 1439 0.5 0.0 33808 1520 ? S 07:11 0:00 avahi-daemon:
running [gandalf.local]
avahi 1440 0.0 0.0 33680 524 ? Ss 07:11 0:00 avahi-daemon:
chroot helper
root 1472 1.0 0.0 115860 2836 ? Ssl 07:11 0:00
/usr/sbin/console-kit-daemon
103 1540 0.0 0.0 16576 984 tty10 Ss+ 07:12 0:00 daemon
--foreground --respawn --attempts=20 --delay=10 --name=10-_-_var_-_log_-_syslog
--pidfile=/var/run/console-log/Debian-console-log/10-_-_var_-_log_-_syslog
--user Debian-console-log adm /usr/share/console-log/logpager -- less
/var/log/syslog 7000000
103 1547 0.0 0.0 8316 916 pts/0 Ss+ 07:12 0:00 less -Pwless
/var/log/syslog +F /var/log/syslog
103 1561 0.0 0.0 16576 984 tty9 Ss+ 07:12 0:00 daemon
--foreground --respawn --attempts=20 --delay=10
--name=9-_-_var_-_log_-_kern.log
--pidfile=/var/run/console-log/Debian-console-log/9-_-_var_-_log_-_kern.log
--user Debian-console-log adm /usr/share/console-log/logpager -- less
/var/log/kern.log 7000000
103 1564 0.0 0.0 8316 916 pts/1 Ss+ 07:12 0:00 less -Pwless
/var/log/kern.log +F /var/log/kern.log
root 1580 0.0 0.0 6456 500 ? Ss 07:12 0:00 /usr/sbin/gpm
-m /dev/input/mice -t exps2
root 1616 0.0 0.0 0 0 ? S< 07:12 0:00 [lockd]
root 1617 0.0 0.0 0 0 ? S< 07:12 0:00 [nfsd4]
root 1618 0.0 0.0 0 0 ? S< 07:12 0:00 [nfsd]
root 1619 0.0 0.0 0 0 ? S< 07:12 0:00 [nfsd]
root 1623 0.0 0.0 14504 428 ? Ss 07:12 0:00
/usr/sbin/rpc.mountd
root 1655 0.5 0.0 19264 912 ? Ss 07:12 0:00
/usr/sbin/xinetd -pidfile /var/run/xinetd.pid
110 1662 17.0 0.1 34288 5004 ? Ss 07:12 0:00 /usr/sbin/hald
root 1663 0.0 0.0 20056 1344 ? S 07:12 0:00 hald-runner
root 1747 0.0 0.0 22044 1224 ? S 07:12 0:00
hald-addon-input: Listening on /dev/input/event2 /dev/input/event4
/dev/input/event5 /dev/input/event1
root 1748 0.0 0.0 22044 1212 ? S 07:12 0:00
hald-addon-storage: polling /dev/hda (every 16 sec)
root 1749 0.0 0.0 22052 1200 ? S 07:12 0:00
/usr/lib/hal/hald-addon-cpufreq
110 1750 0.0 0.0 25936 1200 ? S 07:12 0:00
hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 1764 0.0 0.0 74988 2824 ? Ss 07:12 0:00
/usr/sbin/cupsd -C /etc/cups/cupsd.conf
daemon 1803 0.0 0.0 16372 432 ? Ss 07:12 0:00 /usr/sbin/atd
root 1823 0.0 0.0 22032 1032 ? Ss 07:12 0:00 /usr/sbin/cron
root 1829 0.0 0.0 17544 1576 ? S 07:12 0:00 /bin/sh
/etc/rc2.d/S99rc.local start
root 1832 0.0 0.0 17416 1404 ? S 07:12 0:00 /bin/sh -e
/etc/rc.local
root 1835 0.0 0.0 14744 1012 ? R 07:12 0:00 ps aux
init-+-acpid
|-atd
|-avahi-daemon---avahi-daemon
|-console-kit-dae---63*[{console-kit-dae}]
|-cron
|-cupsd
|-2*[daemon---less]
|-dbus-daemon
|-gpm
|-hald---hald-runner-+-hald-addon-acpi
| |-hald-addon-cpuf
| |-hald-addon-inpu
| `-hald-addon-stor
|-portmap
|-rc---S99rc.local---rc.local---pstree
|-rpc.idmapd
|-rpc.mountd
|-syslog-ng
|-udevd---2*[udevd]
`-xinetd
----------- /etc/rc.local stop -----------
----------- /etc/rc.local start -----------
Wed Dec 2 07:12:05 CET 2009
Runlevel: 2
PPID: 2141
Process environment:
PID TTY STAT TIME COMMAND
2141 ? S 0:00 /bin/sh /etc/rc2.d/S99rc.local start
CONSOLE=/dev/console SELINUX_INIT=YES TERM=linux rootmnt=/root
INIT_VERSION=sysvinit-2.86 init=/sbin/init PATH=/sbin:/usr/sbin:/bin:/usr/bin
runlevel=2 RUNLEVEL=2 PWD=/ VERBOSE=yes previous=N PREVLEVEL=N SHLVL=1 HOME=/
BOOT_IMAGE=/boot/vmlinuz-2.6.31-1-amd64 _=/etc/rc2.d/S99rc.local
All processes:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 2.7 0.0 10328 752 ? Ss 07:11 0:00 init [2]
root 2 0.0 0.0 0 0 ? S< 07:11 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 07:11 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? S< 07:11 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 07:11 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S< 07:11 0:00 [migration/1]
root 7 0.0 0.0 0 0 ? S< 07:11 0:00 [ksoftirqd/1]
root 8 0.0 0.0 0 0 ? S< 07:11 0:00 [watchdog/1]
root 9 0.0 0.0 0 0 ? S< 07:11 0:00 [events/0]
root 10 0.0 0.0 0 0 ? S< 07:11 0:00 [events/1]
root 11 0.0 0.0 0 0 ? S< 07:11 0:00 [cpuset]
root 12 0.0 0.0 0 0 ? S< 07:11 0:00 [khelper]
root 13 0.0 0.0 0 0 ? S< 07:11 0:00 [netns]
root 14 0.0 0.0 0 0 ? S< 07:11 0:00 [async/mgr]
root 15 0.0 0.0 0 0 ? S< 07:11 0:00 [kintegrityd/0]
root 16 0.0 0.0 0 0 ? S< 07:11 0:00 [kintegrityd/1]
root 17 0.0 0.0 0 0 ? S< 07:11 0:00 [kblockd/0]
root 18 0.0 0.0 0 0 ? S< 07:11 0:00 [kblockd/1]
root 19 0.0 0.0 0 0 ? S< 07:11 0:00 [kacpid]
root 20 0.0 0.0 0 0 ? S< 07:11 0:00 [kacpi_notify]
root 21 0.0 0.0 0 0 ? S< 07:11 0:00 [kacpi_hotplug]
root 22 0.0 0.0 0 0 ? S< 07:11 0:00 [ksuspend_usbd]
root 23 0.0 0.0 0 0 ? S< 07:11 0:00 [khubd]
root 24 0.0 0.0 0 0 ? S< 07:11 0:00 [kseriod]
root 25 0.0 0.0 0 0 ? S< 07:11 0:00 [kondemand/0]
root 26 0.0 0.0 0 0 ? S< 07:11 0:00 [kondemand/1]
root 27 0.0 0.0 0 0 ? S 07:11 0:00 [khungtaskd]
root 28 0.0 0.0 0 0 ? S 07:11 0:00 [pdflush]
root 29 0.0 0.0 0 0 ? S 07:11 0:00 [pdflush]
root 30 0.0 0.0 0 0 ? S< 07:11 0:00 [kswapd0]
root 31 0.0 0.0 0 0 ? S< 07:11 0:00 [aio/0]
root 32 0.0 0.0 0 0 ? S< 07:11 0:00 [aio/1]
root 33 0.0 0.0 0 0 ? S< 07:11 0:00 [crypto/0]
root 34 0.0 0.0 0 0 ? S< 07:11 0:00 [crypto/1]
root 202 0.0 0.0 0 0 ? S< 07:11 0:00 [ata/0]
root 203 0.0 0.0 0 0 ? S< 07:11 0:00 [ata/1]
root 204 0.0 0.0 0 0 ? S< 07:11 0:00 [ata_aux]
root 215 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_0]
root 216 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_1]
root 217 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_2]
root 218 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_3]
root 219 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_4]
root 220 0.0 0.0 0 0 ? S< 07:11 0:00 [scsi_eh_5]
root 286 0.0 0.0 0 0 ? S< 07:11 0:00
[usbhid_resumer]
root 316 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 399 0.4 0.0 17052 1204 ? S<s 07:11 0:00 udevd --daemon
root 545 0.0 0.0 17048 1096 ? S< 07:11 0:00 udevd --daemon
root 546 0.0 0.0 17048 1096 ? S< 07:11 0:00 udevd --daemon
root 588 0.0 0.0 0 0 ? S< 07:11 0:00 [kpsmoused]
root 599 0.0 0.0 0 0 ? S< 07:11 0:00 [edac-poller]
root 643 0.0 0.0 0 0 ? S< 07:11 0:00 [hd-audio0]
root 1066 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 1067 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 1070 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 1071 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
root 1072 0.0 0.0 0 0 ? S< 07:11 0:00 [kjournald]
daemon 1138 0.0 0.0 8028 532 ? Ss 07:11 0:00 /sbin/portmap
root 1150 0.0 0.0 0 0 ? S< 07:11 0:00 [rpciod/0]
root 1151 0.0 0.0 0 0 ? S< 07:11 0:00 [rpciod/1]
root 1153 0.0 0.0 0 0 ? S< 07:11 0:00 [kslowd]
root 1154 0.0 0.0 0 0 ? S< 07:11 0:00 [kslowd]
root 1155 0.0 0.0 0 0 ? S< 07:11 0:00 [nfsiod]
root 1161 0.0 0.0 26968 596 ? Ss 07:11 0:00
/usr/sbin/rpc.idmapd
root 1332 1.0 0.0 17644 1720 ? Ss 07:11 0:00 /bin/sh
/etc/init.d/rc 2
root 1355 0.0 0.0 0 0 ? S< 07:11 0:00
[kconservative/0]
root 1356 0.0 0.0 0 0 ? S< 07:11 0:00
[kconservative/1]
root 1407 0.7 0.0 19600 944 ? Ss 07:11 0:00
/usr/sbin/syslog-ng -p /var/run/syslog-ng.pid
root 1418 0.0 0.0 3828 552 ? Ss 07:11 0:00 /usr/sbin/acpid
104 1428 0.5 0.0 23336 936 ? Ss 07:11 0:00
/usr/bin/dbus-daemon --system
avahi 1439 0.3 0.0 33808 1520 ? S 07:11 0:00 avahi-daemon:
running [gandalf.local]
avahi 1440 0.0 0.0 33680 524 ? Ss 07:11 0:00 avahi-daemon:
chroot helper
root 1472 0.6 0.0 115888 2952 ? Ssl 07:11 0:00
/usr/sbin/console-kit-daemon
103 1540 0.0 0.0 16576 984 tty10 Ss+ 07:12 0:00 daemon
--foreground --respawn --attempts=20 --delay=10 --name=10-_-_var_-_log_-_syslog
--pidfile=/var/run/console-log/Debian-console-log/10-_-_var_-_log_-_syslog
--user Debian-console-log adm /usr/share/console-log/logpager -- less
/var/log/syslog 7000000
103 1547 0.0 0.0 8316 916 pts/0 Ss+ 07:12 0:00 less -Pwless
/var/log/syslog +F /var/log/syslog
103 1561 0.0 0.0 16576 984 tty9 Ss+ 07:12 0:00 daemon
--foreground --respawn --attempts=20 --delay=10
--name=9-_-_var_-_log_-_kern.log
--pidfile=/var/run/console-log/Debian-console-log/9-_-_var_-_log_-_kern.log
--user Debian-console-log adm /usr/share/console-log/logpager -- less
/var/log/kern.log 7000000
103 1564 0.0 0.0 8316 916 pts/1 Ss+ 07:12 0:00 less -Pwless
/var/log/kern.log +F /var/log/kern.log
root 1580 0.0 0.0 6456 500 ? Ss 07:12 0:00 /usr/sbin/gpm
-m /dev/input/mice -t exps2
root 1616 0.0 0.0 0 0 ? S< 07:12 0:00 [lockd]
root 1617 0.0 0.0 0 0 ? S< 07:12 0:00 [nfsd4]
root 1618 0.0 0.0 0 0 ? S< 07:12 0:00 [nfsd]
root 1619 0.0 0.0 0 0 ? S< 07:12 0:00 [nfsd]
root 1623 0.0 0.0 14504 428 ? Ss 07:12 0:00
/usr/sbin/rpc.mountd
root 1655 0.2 0.0 19264 912 ? Ss 07:12 0:00
/usr/sbin/xinetd -pidfile /var/run/xinetd.pid
110 1662 8.5 0.1 34288 5004 ? Ss 07:12 0:00 /usr/sbin/hald
root 1663 0.0 0.0 20056 1344 ? S 07:12 0:00 hald-runner
root 1747 0.0 0.0 22044 1224 ? S 07:12 0:00
hald-addon-input: Listening on /dev/input/event2 /dev/input/event4
/dev/input/event5 /dev/input/event1
root 1748 0.0 0.0 22044 1212 ? S 07:12 0:00
hald-addon-storage: polling /dev/hda (every 16 sec)
root 1749 0.0 0.0 22052 1200 ? S 07:12 0:00
/usr/lib/hal/hald-addon-cpufreq
110 1750 0.0 0.0 25936 1200 ? S 07:12 0:00
hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 1764 1.0 0.0 74988 2824 ? Ss 07:12 0:00
/usr/sbin/cupsd -C /etc/cups/cupsd.conf
daemon 1803 0.0 0.0 16372 432 ? Ss 07:12 0:00 /usr/sbin/atd
root 1823 0.0 0.0 22032 1032 ? Ss 07:12 0:00 /usr/sbin/cron
root 2141 0.0 0.0 17544 1580 ? S 07:12 0:00 /bin/sh
/etc/rc2.d/S99rc.local start
root 2144 0.0 0.0 17416 1404 ? S 07:12 0:00 /bin/sh -e
/etc/rc.local
root 2147 0.0 0.0 14744 1008 ? R 07:12 0:00 ps aux
init-+-acpid
|-atd
|-avahi-daemon---avahi-daemon
|-console-kit-dae---63*[{console-kit-dae}]
|-cron
|-cupsd
|-2*[daemon---less]
|-dbus-daemon
|-gpm
|-hald---hald-runner-+-hald-addon-acpi
| |-hald-addon-cpuf
| |-hald-addon-inpu
| `-hald-addon-stor
|-portmap
|-rc---S99rc.local---rc.local---pstree
|-rpc.idmapd
|-rpc.mountd
|-syslog-ng
|-udevd---2*[udevd]
`-xinetd
----------- /etc/rc.local stop -----------
Further infos:
- The sysv-rc and sysvinit packages are version 2.87dsf-8.
- /etc/inittab is the original default one (i reinstalled sysvinit).
- It's still the legacy runlevel init setup.
I rejected the upgrade to the new dependency thing in about October, since some
initsripts were not properly prepared that time; later, i did not do it because
i wanted to track this problem under unmodified conditions first). The
indicator file '/etc/init.d/.legacy-bootordering' is in place.
- I noted the problem only after the upgrade to grub2, but this may as well be
unrelated.
I have some questions:
(1) What does the '2' in the 'init [2]' entry of the ps output mean ?
(2) Do i interpret it correctly that udev gets started twice ? Is this ok ?
(3) What does SELINUX_INIT=YES (in the process environment) mean ? Package
SeLinux is not installed here...?
(4) I also wonder about what i interpret as 63 * console-kit (there's only one
/usr/sbin/console-kit-daemon process, after startup, so what does it do at boot
??)
I am a little bit irritated about to how get the boot messages from the
runlevel initscripts stored on disk, for later analysis. I can see some
essential services FAIL (syslog, cron and xientd). But apparently they are just
running later. I suspect it's because some redundant init process tries to
start them twice. If that's the case than i have to assume this box is pretty
much screwed.
However, i can not find these FAIL messages in any log in /var/log (for
example, not with grep -r FAIL *, nor when i grep for the service name).
I would appreciate any idea how to track this problem down. It does not keep me
from doing my work, it's just i'm worried what else may be screwed. I somehow
can not trust this system, then.
I even started to wonder if it could be a virus (although i never heard of any
linux PC virus) !
I'll attach all files and some log in a tarball. (I cleaned the logs before
reboot)
tia, mi
2009-12-02.tar.bz2
Description: application/bzip

