public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Differences: halt, shutdown, init 0?
@ 2005-08-03  6:45 Minn M Soe
  2005-08-03 13:57 ` Michael Crute
  2005-08-04 13:01 ` Richard Fish
  0 siblings, 2 replies; 4+ messages in thread
From: Minn M Soe @ 2005-08-03  6:45 UTC (permalink / raw
  To: gentoo-user

Hello,

Is it harmless if we shut down with the command init 0? Are there big
differences between halt, shutdown -r now and init 0?

Thanks!
Minn

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Differences: halt, shutdown, init 0?
  2005-08-03  6:45 [gentoo-user] Differences: halt, shutdown, init 0? Minn M Soe
@ 2005-08-03 13:57 ` Michael Crute
  2005-08-04 15:26   ` Richard Fish
  2005-08-04 13:01 ` Richard Fish
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Crute @ 2005-08-03 13:57 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

Init 0 does a shutdown just without the -r now (which you could add). Here 
is the line from my stock /etc/inittab "l0:0:wait:/sbin/rc shutdown"

-Mike

On 8/3/05, Minn M Soe <duckyhatezchat@gmail.com> wrote:
> 
> Hello,
> 
> Is it harmless if we shut down with the command init 0? Are there big
> differences between halt, shutdown -r now and init 0?
> 
> Thanks!
> Minn
> 
> --
> gentoo-user@gentoo.org mailing list
> 
> 


-- 
________________________________
Michael E. Crute
Software Developer
SoftGroup Development Corporation

"In a world without walls and fences, who needs windows and gates?"

[-- Attachment #2: Type: text/html, Size: 1002 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Differences: halt, shutdown, init 0?
  2005-08-03  6:45 [gentoo-user] Differences: halt, shutdown, init 0? Minn M Soe
  2005-08-03 13:57 ` Michael Crute
@ 2005-08-04 13:01 ` Richard Fish
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Fish @ 2005-08-04 13:01 UTC (permalink / raw
  To: gentoo-user

Minn M Soe wrote:

>Hello,
>
>Is it harmless if we shut down with the command init 0? Are there big
>differences between halt, shutdown -r now and init 0?
>  
>

See the man pages for 'halt' and 'shutdown'.

Unless told otherwise, shutdown operates by signalling init, so 
"shutdown", "halt", "init 0", and "telinit 0" are all equivalent.  Halt 
calls shutdown if the system is not already at runlevel 0 or 6, so that 
is also normally equivalent.

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Differences: halt, shutdown, init 0?
  2005-08-03 13:57 ` Michael Crute
@ 2005-08-04 15:26   ` Richard Fish
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Fish @ 2005-08-04 15:26 UTC (permalink / raw
  To: gentoo-user

Michael Crute wrote:

> Init 0 does a shutdown just without the -r now (which you could add). 
> Here is the line from my stock /etc/inittab "l0:0:wait:/sbin/rc shutdown"
>

Read that entry again, what you said is not correct.  For runlevel 0, 
init runs "/sbin/rc" with an argument of "shutdown".  This causes the 
gentoo startup scripts to stop all services, unmount network 
filesystems, etc.  This is not the same as /sbin/shutdown.

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-04 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-03  6:45 [gentoo-user] Differences: halt, shutdown, init 0? Minn M Soe
2005-08-03 13:57 ` Michael Crute
2005-08-04 15:26   ` Richard Fish
2005-08-04 13:01 ` Richard Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox