[gull] init scripts ne démarrent pas

Pierre Maitre po.maitre at gmail.com
Sat Apr 7 09:07:51 CEST 2012


Le 7 avril 2012 01:07, Stéphane Graber <stgraber at ubuntu.com> a écrit :
> Bonjour,
>
> De quelle version d'Ubuntu s'agit-il?

root at station0:/home/maitre# lsb_release -a
LSB Version:	core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.4 LTS
Release:	10.04
Codename:	lucid
root at station0:/home/maitre# uname -a
Linux station0 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC
2012 i686 GNU/Linux


> Le résultat de "initctl list" serait utile aussi.

Voilà le résultat,
1) juste après le boot,
2) après un telinit 2,
3) et enfin un diff des deux situations:

1)
root at station0:/home/maitre# runlevel
unknown
root at station0:/home/maitre# initctl list | sort | tee list_after_boot
acpid stop/waiting
alsa-mixer-save stop/waiting
anacron stop/waiting
apport stop/waiting
atd stop/waiting
avahi-daemon start/running, process 909
console-setup stop/waiting
control-alt-delete stop/waiting
cron stop/waiting
cryptdisks-enable stop/waiting
cryptdisks-udev stop/waiting
dbus start/running, process 893
dmesg stop/waiting
failsafe-x stop/waiting
gdm start/running, process 903
gssd stop/waiting
hostname stop/waiting
hwclock-save stop/waiting
hwclock stop/waiting
idmapd start/running, process 826
irqbalance stop/waiting
module-init-tools stop/waiting
mountall-net stop/waiting
mountall-reboot stop/waiting
mountall-shell stop/waiting
mountall stop/waiting
mounted-dev stop/waiting
mounted-tmp stop/waiting
mounted-varrun stop/waiting
mysql stop/waiting
networking stop/waiting
network-interface-security (networking) start/running
network-interface-security (network-manager) start/running
network-interface stop/waiting
network-manager start/running, process 977
nmbd start/running, process 1084
plymouth-log stop/waiting
plymouth-splash stop/waiting
plymouth-stop stop/waiting
plymouth stop/waiting
portmap-boot stop/waiting
portmap stop/waiting
portmap-wait stop/waiting
procps stop/waiting
rcS stop/waiting
rc stop/waiting
rc-sysinit stop/waiting
rsyslog start/running, process 875
screen-cleanup stop/waiting
smbd stop/waiting
ssh start/running, process 799
statd-mounting stop/waiting
statd stop/waiting
tty1 stop/waiting
tty2 stop/waiting
tty3 stop/waiting
tty4 stop/waiting
tty5 stop/waiting
tty6 stop/waiting
udev-finish stop/waiting
udevmonitor stop/waiting
udev start/running, process 351
udevtrigger stop/waiting
ufw start/running
upstart-udev-bridge start/running, process 344
ureadahead-other stop/waiting
ureadahead start/running, process 318
root at station0:/home/maitre#


2)
root at station0:/home/maitre# telinit 2
root at station0:/home/maitre# runlevel
N 2
root at station0:/home/maitre# initctl list | sort | tee list_runlevel2
acpid start/running, process 5087
alsa-mixer-save stop/waiting
anacron stop/waiting
apport stop/waiting
atd start/running, process 5093
avahi-daemon start/running, process 909
console-setup stop/waiting
control-alt-delete stop/waiting
cron start/running, process 5092
cryptdisks-enable stop/waiting
cryptdisks-udev stop/waiting
dbus start/running, process 893
dmesg stop/waiting
failsafe-x stop/waiting
gdm start/running, process 903
gssd stop/waiting
hostname stop/waiting
hwclock-save stop/waiting
hwclock stop/waiting
idmapd start/running, process 826
irqbalance stop/waiting
module-init-tools stop/waiting
mountall-net stop/waiting
mountall-reboot stop/waiting
mountall-shell stop/waiting
mountall stop/waiting
mounted-dev stop/waiting
mounted-tmp stop/waiting
mounted-varrun stop/waiting
mysql start/running, process 5137
networking stop/waiting
network-interface-security (networking) start/running
network-interface-security (network-manager) start/running
network-interface stop/waiting
network-manager start/running, process 977
nmbd start/running, process 1084
plymouth-log stop/waiting
plymouth-splash stop/waiting
plymouth-stop stop/waiting
plymouth stop/waiting
portmap-boot stop/waiting
portmap stop/waiting
portmap-wait stop/waiting
procps stop/waiting
rcS stop/waiting
rc start/running, process 5069
rc-sysinit stop/waiting
rsyslog start/running, process 875
screen-cleanup stop/waiting
smbd stop/waiting
ssh start/running, process 799
statd-mounting stop/waiting
statd stop/waiting
tty1 stop/waiting
tty2 start/running, process 5079
tty3 start/running, process 5080
tty4 start/running, process 5070
tty5 start/running, process 5074
tty6 start/running, process 5083
udev-finish stop/waiting
udevmonitor stop/waiting
udev start/running, process 351
udevtrigger stop/waiting
ufw start/running
upstart-udev-bridge start/running, process 344
ureadahead-other stop/waiting
ureadahead start/running, process 318


3)
root at station0:/home/maitre#  diff list_after_boot  list_runlevel2
1c1
< acpid stop/waiting
---
> acpid start/running, process 5087
5c5
< atd stop/waiting
---
> atd start/running, process 5093
9c9
< cron stop/waiting
---
> cron start/running, process 5092
30c30
< mysql stop/waiting
---
> mysql start/running, process 5137
46c46
< rc stop/waiting
---
> rc start/running, process 5069
55,59c55,59
< tty2 stop/waiting
< tty3 stop/waiting
< tty4 stop/waiting
< tty5 stop/waiting
< tty6 stop/waiting
---
> tty2 start/running, process 5079
> tty3 start/running, process 5080
> tty4 start/running, process 5070
> tty5 start/running, process 5074
> tty6 start/running, process 5083

On remarquera que les scripts de type sysV, comme apache, sont lancés
par telinit 2, mais ils ne sont pas listés par initctl.


J'ai une autre machine avec Ubuntu 10.04  et elle se retrouve  - comme
on s'y attend - avec un runlevel 2 après avoir booté.

Pierre Maitre


More information about the gull mailing list