Pages : 1
#1 Le 08/08/2010, à 21:00
- Le Barde
Peut-on tuer init ?
Salut à tous,
Suite à mes fous-rires répétés en voyant la blague du sandwich, j'ai essayé de l'expliquer à ma mie.
Drôle de lubie : j'ai donc essayé de tuer le processus père / mère : Init.
le-barde@bardus-fixe:~$ kill 1
bash: kill: (1) - Opération non permise
le-barde@bardus-fixe:~$ sudo kill 1
[sudo] password for adrien:
Sorry, try again.
[sudo] password for adrien:
le-barde@bardus-fixe:~$
Yeah !
Problème :
adrien@adrien-fixe:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
[b]root 1 0.0 0.0 2796 1640 ? Ss 12:58 0:00 /sbin/init[/b]
root 2 0.0 0.0 0 0 ? S 12:58 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 12:58 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? S 12:58 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S 12:58 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S 12:58 0:00 [migration/1]
root 7 0.0 0.0 0 0 ? S 12:58 0:00 [ksoftirqd/1]
root 8 0.0 0.0 0 0 ? S 12:58 0:00 [watchdog/1]
root 9 0.0 0.0 0 0 ? S 12:58 0:00 [events/0]
root 10 0.0 0.0 0 0 ? S 12:58 0:00 [events/1]
root 11 0.0 0.0 0 0 ? S 12:58 0:00 [cpuset]
root 12 0.0 0.0 0 0 ? S 12:58 0:00 [khelper]
root 13 0.0 0.0 0 0 ? S 12:58 0:00 [netns]
root 14 0.0 0.0 0 0 ? S 12:58 0:00 [async/mgr]
root 15 0.0 0.0 0 0 ? S 12:58 0:00 [pm]
root 17 0.0 0.0 0 0 ? S 12:58 0:00 [sync_supers]
root 18 0.0 0.0 0 0 ? S 12:58 0:00 [bdi-default]
root 19 0.0 0.0 0 0 ? S 12:58 0:00 [kintegrityd/0]
root 20 0.0 0.0 0 0 ? S 12:58 0:00 [kintegrityd/1]
root 21 0.0 0.0 0 0 ? S 12:58 0:00 [kblockd/0]
root 22 0.0 0.0 0 0 ? S 12:58 0:00 [kblockd/1]
root 23 0.0 0.0 0 0 ? S 12:58 0:00 [kacpid]
root 24 0.0 0.0 0 0 ? S 12:58 0:00 [kacpi_notify]
root 25 0.0 0.0 0 0 ? S 12:58 0:00 [kacpi_hotplug]
root 26 0.0 0.0 0 0 ? S 12:58 0:04 [ata/0]
root 27 0.0 0.0 0 0 ? S 12:58 0:00 [ata/1]
root 28 0.0 0.0 0 0 ? S 12:58 0:00 [ata_aux]
root 29 0.0 0.0 0 0 ? S 12:58 0:00 [ksuspend_usbd]
root 30 0.0 0.0 0 0 ? S 12:58 0:00 [khubd]
root 31 0.0 0.0 0 0 ? S 12:58 0:00 [kseriod]
root 32 0.0 0.0 0 0 ? S 12:58 0:00 [kmmcd]
root 35 0.0 0.0 0 0 ? S 12:58 0:00 [khungtaskd]
root 36 0.0 0.0 0 0 ? S 12:58 0:00 [kswapd0]
root 37 0.0 0.0 0 0 ? SN 12:58 0:00 [ksmd]
root 38 0.0 0.0 0 0 ? S 12:58 0:00 [aio/0]
root 39 0.0 0.0 0 0 ? S 12:58 0:00 [aio/1]
root 40 0.0 0.0 0 0 ? S 12:58 0:00 [ecryptfs-kthrea]
root 41 0.0 0.0 0 0 ? S 12:58 0:00 [crypto/0]
root 42 0.0 0.0 0 0 ? S 12:58 0:00 [crypto/1]
root 46 0.0 0.0 0 0 ? S 12:58 0:00 [scsi_eh_0]
root 47 0.0 0.0 0 0 ? S 12:58 0:00 [scsi_eh_1]
root 48 0.0 0.0 0 0 ? S 12:58 0:09 [scsi_eh_2]
root 49 0.0 0.0 0 0 ? S 12:58 0:00 [scsi_eh_3]
root 52 0.0 0.0 0 0 ? S 12:58 0:00 [kstriped]
root 54 0.0 0.0 0 0 ? S 12:58 0:00 [kmpathd/0]
root 56 0.0 0.0 0 0 ? S 12:58 0:00 [kmpathd/1]
root 57 0.0 0.0 0 0 ? S 12:58 0:00 [kmpath_handlerd]
root 58 0.0 0.0 0 0 ? S 12:58 0:00 [ksnapd]
root 59 0.0 0.0 0 0 ? S 12:58 0:00 [kondemand/0]
root 60 0.0 0.0 0 0 ? R 12:58 0:00 [kondemand/1]
root 61 0.0 0.0 0 0 ? S 12:58 0:00 [kconservative/0]
root 62 0.0 0.0 0 0 ? S 12:58 0:00 [kconservative/1]
root 246 0.0 0.0 0 0 ? S 12:58 0:00 [khpsbpkt]
root 255 0.0 0.0 0 0 ? S 12:58 0:00 [knodemgrd_0]
root 270 0.0 0.0 0 0 ? S 12:58 0:00 [scsi_eh_4]
root 271 0.0 0.0 0 0 ? S 12:58 0:00 [usb-storage]
root 278 0.0 0.0 0 0 ? S 12:58 0:00 [kjournald]
root 332 0.0 0.0 2312 900 ? S 12:58 0:00 upstart-udev-bridge --daemon
root 354 0.0 0.0 0 0 ? S 12:58 0:00 [flush-8:0]
root 355 0.0 0.0 2932 1348 ? S<s 12:58 0:00 udevd --daemon
root 657 0.0 0.0 0 0 ? S 12:58 0:00 [bluetooth]
root 664 0.0 0.0 0 0 ? S 12:58 0:00 [kpsmoused]
root 776 0.0 0.0 0 0 ? S 12:58 0:00 [hd-audio0]
root 800 0.0 0.0 0 0 ? S 12:58 0:00 [hd-audio2]
root 879 0.0 0.0 0 0 ? S 12:59 0:00 [kjournald]
root 889 0.0 0.0 0 0 ? S 12:59 0:00 [kjournald]
root 895 0.0 0.0 0 0 ? S 12:59 0:00 [kjournald]
root 919 0.0 0.1 15308 3960 ? Ss 12:59 0:00 smbd -F
root 934 0.0 0.0 5548 916 ? Ss 12:59 0:00 /usr/sbin/sshd
[b][...][/b]
le-barde@bardus-fixe:~$
Init est réapparu !
Sauriez-vous s'il est possible de tuer Init ?
Hors ligne
#2 Le 08/08/2010, à 21:02
- wido
Re : Peut-on tuer init ?
Bonjour,
tu ne devrais plus l'avoir:
sudo halt
Hors ligne
#3 Le 09/08/2010, à 08:11
- credenhill
Re : Peut-on tuer init ?
hello
essaye
sudo kill -9 1
Hors ligne
#4 Le 09/08/2010, à 08:19
- Le Barde
Re : Peut-on tuer init ?
hello
essayesudo kill -9 1
Bien essayé ; mais sudo kill -9 1 ne fonctionne pas ! 'pouvez essayer, je vous l'assure.
Hors ligne
#5 Le 09/08/2010, à 09:03
- kamui57
Re : Peut-on tuer init ?
http://8help.osu.edu/wks/sysadm_course/sysadm-129.html
# kill -TERM 1
This kills the init process. Since init must be running this will panic the system and force a reboot. It is NOT recommended.
http://www.linuxhq.com/guides/SAG/c1719.html
init itself is not allowed to die. You can't kill init even with SIGKILL.
http://www.mail-archive.com/libvir-list@redhat.com/msg26555.html
Re: [libvirt] [PATCH] lxc: Ensure to kill init process by sending SIGKILL if needed
http://www.linuxquestions.org/questions/linux-general-1/what-to-do-when-kill-9-pid-doesnt-work-641497/
Umm ... you can't kill init. The kernel won't let you. When a parent processes predeceases its children (or dies without waiting for completed children), init adopts them and cleans them up. This is part of the reason it's so vital for init to hang around (along with respawning ttys and the like).
Volà ce que j'ai trouvé. Qu'est-ce qui est vrai, faux, je ne sais pas.
Quand le dernier arbre aura été abattu, et le dernier animal exterminé, les hommes se rendront compte que l'argent ne se mange pas (proverbe indien)
Toshiba Satellite L655 4 Go RAM, Archlinux Gnome-shell,LXDE / W7
Toshiba Satellite M30 512 Mo RAM, Archlinux Gnome 3 restreint / Crunchbang LXDE
https://help.ubuntu.com/community/Pastebinit pour poster du texte sur internet en console
Hors ligne
Pages : 1