Web Hosting Talk







View Full Version : How do I edit the Reboot message?


g333
05-07-2002, 09:05 PM
You know how when your reboot or shutdown a server on Linux it send the broadcast message to all of the users? We'll how can I change that? Like with a pre-defined message for it to send out?

Thanks,
Michael Barker

phpjames
05-08-2002, 02:00 AM
Good question. Try google for editing the shutdown broadcast message. Any results?

g333
05-08-2002, 07:35 AM
I think I will try that.

Travis
05-08-2002, 07:47 AM
I'm pretty sure that message is hard-coded into the shutdown command. You'll probably have to edit source and recompile.

BMurtagh
05-08-2002, 10:27 AM
i think i remember reading in a rh book or a fbsd book and you can add a flag to your shutdown command that will allow you to type a message to the end of it then it'll send the message globally then shutdown. i'll check when i get home from school.

p.s. who does school work in school? :P

webx
05-08-2002, 11:54 AM
man shutdown

shutdown -r now YOUR_MESSAGE_HERE

is that what you are looking for?

BMurtagh
05-08-2002, 05:53 PM
yep, thanks. i just walked in the door and was looking it up :)