This is from the manpage of 66-shutdown:

NAME
66-shutdown - Trigger the system shutdown procedure
SYNOPSIS
66-shutdown [ -H ] [ -l live ] [ -h | -p | -r | -k ] [ -a ] [ -t sec ] [ -f | -F ] time [ message]
66-shutdown -c [ message ]

There is also 66-shutdownd, the daemon waiting for the signal to trigger the shutdown procedure.
While poweroff and reboot work fine, 66-shutdown doesn't seem to do anything and any options I've tried seem to be ignored as errors. Thinking I may have done something to my system I tried the same on the live and it is the same behavior.

Can someone throw some light to it. I do understand theoretically how it is suppose to work but in practice it doesn't seem to work.

Nothing urgent, just wondering and playing with the system to become more familiar.
# 66-shutdown -r +1 "i will reboot in 1 minutes"
# 66-shutdown -k now "i display this message at all users currently connected, but i do nothing"
According to the documentation: The 66-shutdown binary is not meant to be called directly.It should always be referenced by the shutdown skeleton file installed by default at /etc/66
I am studying 66-hpr and s6-hpr...
This -w option for wtmp, if I understood correctly writes down the state of the system before shutdown/reboot but I don't understand where so I can see its contents.

I guess I should continue my study and appeal to the new 66@ obarun.org mailing list for such matters.
# who
read the /run/utmp file
# last
read the /var/log/wtmp

So the answer is /var/log/wtmp
I guess I should continue my study and appeal to the new 66@ obarun.org mailing list for such matters.
it's up to you.

Powered by Obarun