You are not logged in.

#1 2013-05-25 08:00:48

DaveCode
Member
Registered: 2008-08-15
Posts: 103

Custom Shutdown Halt Notice

On shutdown I'd like a console notice other than "System halted." Is there any way shy of recompiling the kernel or systemd?

Thanks!

Offline

#2 2013-05-25 08:11:29

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 232

Re: Custom Shutdown Halt Notice

It's the same result after?

systemctl shutdown

OR

# systemctl shutdown

Last edited by Fixxer (2013-05-25 08:55:47)

Offline

#3 2013-05-25 08:47:30

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,680

Re: Custom Shutdown Halt Notice

poweroff usually behaves better than shutdown

Offline

#4 2013-05-25 23:04:52

DaveCode
Member
Registered: 2008-08-15
Posts: 103

Re: Custom Shutdown Halt Notice

While systemctl poweroff is used commands are not the issue. This PC avoids software power management, being "always on" in theory. Shutdowns are rare.

Shutdown leaves "System halted" on the last line. After that a manual power switch is needful. Where is this string, "System halted" defined?

Thanks!

Offline

#5 2013-05-26 05:43:38

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Custom Shutdown Halt Notice

~/src/linux-stable $ grep 'System halted' -r .
kernel/sys.c:   printk(KERN_EMERG "System halted.\n");

Have fun recompiling the kernel smile

Offline

Board footer

Powered by FluxBB