LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2004, 01:13 AM   #1
yi_dong2004
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
What would happen if I issued "kill -9 1"


Hi every expert:
My question is:
What would happen if I issued the command "kill -9 1"

I tried it, it seems nothing happened. Should this command kill the init process? Can anyone please explain to me ?

Thanks very much in advance!
 
Old 10-29-2004, 01:46 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
What process is number 1? If you type:
ps -aux | less
Then you can view your running processes, and see which one is '1'.

And a kill 9 means 'do it now!' rather than 'please shutdown at your next convenience' which is a 15.

Cool

[edit]
I realize it's likely init.
[/edit]

Last edited by MasterC; 10-29-2004 at 02:11 AM.
 
Old 10-29-2004, 02:36 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
It would not allow you to post before you read the rules so
that you wouldn't double post the very first day!

Last edited by Bruce Hill; 10-29-2004 at 02:39 AM.
 
Old 10-29-2004, 04:19 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
? Maybe you meant a different post?
 
Old 10-29-2004, 04:22 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Sorry Chad I was being a smart-alec. His first post was a double, once here and one in Linux - General
http://www.linuxquestions.org/questi...hreadid=248638
 
Old 10-29-2004, 04:28 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Thanks for keeping an eye out

Cool
 
Old 10-29-2004, 04:43 AM   #7
yi_dong2004
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry and Thanks

I am sorry I did not know the rules.

To MasterC:
PID= 1 is the init process.

According to my knowledge, kill the init process with -9 will immediately make the computer down, but it seems nothing happened.
 
Old 10-29-2004, 05:39 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I wouldn't think so, but rather that nothing can be init, or initialized/deinitialized if the init process is not running... But that's just my speculation.

Cool
 
Old 10-29-2004, 08:43 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Re: Sorry and Thanks

Quote:
Originally posted by yi_dong2004
I am sorry I did not know the rules.
That's funny, cause you agreed to them when you registered for this site.

Quote:
To MasterC:
PID= 1 is the init process.

According to my knowledge, kill the init process with -9 will immediately make the computer down, but it seems nothing happened.
And what is the purpose of you killing init? Are you even doing this as root? Why don't you just shutdown your machine the normal way....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Explained: "kernel panic - not syncing - attempted to kill init" sundialsvcs Linux - Software 36 04-24-2010 09:58 AM
What would happen if "kill -9 1" is issued yi_dong2004 Linux - General 1 10-29-2004 01:57 AM
Will "grub-install /dev/hda" kill Windows XP MBR? Zullocrit Linux - Newbie 3 09-25-2004 10:50 AM
How to kill a session in "pts/0" idle for 209d? (Redhat-9) francio Linux - Newbie 2 07-28-2004 06:54 PM
"Attempted to kill idle/init task" during installation of Mandrake 10 e.fabene Mandriva 0 06-08-2004 11:01 AM


All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration