linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* halt the system without any broadcast message on the console
@ 2010-05-27 15:39 Bosi Daniele
  2010-05-31  9:17 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Bosi Daniele @ 2010-05-27 15:39 UTC (permalink / raw)
  To: 'linuxppc-dev@lists.ozlabs.org'

Hi all,
on the embedded system I'm working (mpc5121e, linux kernel 2.6.24.6) when I=
 type the command "halt" on the console I see a broadcast message sent to a=
ll the users like this:

" Broadcast message from root (console) (Thu May 27 09:04:41 2010):

The system is going down for system halt NOW!"

I'd like to avoid this message on the console I'm using because at producti=
on time this has to be a simple serial port for external peripheral connect=
ion. (to do this on the command line we'll leave empty the "console" field)=
.

The only way I found to avoid the broadcast message is the command "telinit=
 0" . In this way no one calls the "shutdown" command that is the one which=
 send the broadcast message.
I did also some tests with the shutdown parameters but none of them erase t=
he broadcast message.

So my questions are:
Does the command  "telinit 0" is safe in order to halt the machine?
Does the command  "telinit 6" is safe in order to reboot the machine?
Are there others commands to do the same work without the broadcast message=
?


Thanks
Daniele Bosi

^ permalink raw reply	[flat|nested] 3+ messages in thread
* halt the system without any broadcast message on the console
@ 2010-05-27  8:24 Bosi Daniele
  0 siblings, 0 replies; 3+ messages in thread
From: Bosi Daniele @ 2010-05-27  8:24 UTC (permalink / raw)
  To: linuxppc-dev@lists.ozlabs.org

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

Hi all,
on the embedded system I'm working (mpc5121e, linux kernel 2.6.24.6) when I type the command "halt" on the console I see a broadcast message sent to all the users like this:

" Broadcast message from root (console) (Thu May 27 09:04:41 2010):

The system is going down for system halt NOW!"

I'd like to avoid this message on the console I'm using because at production time this has to be a simple serial port for external peripheral connection. (to do this on the command line we'll leave empty the "console" field).

The only way I found to avoid the broadcast message is the command "telinit 0" . In this way no one calls the "shutdown" command that is the one which send the broadcast message.
I did also some tests with the shutdown parameters but none of them erase the broadcast message.

So my questions are:
Does the command  "telinit 0" is safe in order to halt the machine?
Does the command  "telinit 6" is safe in order to reboot the machine?
Are there others commands to do the same work without the broadcast message?


Thanks
Daniele Bosi

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

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

end of thread, other threads:[~2010-05-31  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 15:39 halt the system without any broadcast message on the console Bosi Daniele
2010-05-31  9:17 ` Benjamin Herrenschmidt
  -- strict thread matches above, loose matches on Subject: below --
2010-05-27  8:24 Bosi Daniele

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).