49b2a218b5
the system ("halt"). svn path=/nixu/trunk/; revision=7083
24 lines
323 B
Nix
24 lines
323 B
Nix
{bash}:
|
|
|
|
{
|
|
name = "sys-halt";
|
|
|
|
job = "
|
|
start on reboot
|
|
start on halt
|
|
start on system-halt
|
|
start on power-off
|
|
|
|
script
|
|
exec < /dev/tty1 > /dev/tty1 2>&1
|
|
echo \"\"
|
|
echo \"<<< SYSTEM SHUTDOWN >>>\"
|
|
echo \"\"
|
|
|
|
# Right now all events above power off the system.
|
|
exec halt -f -p
|
|
end script
|
|
";
|
|
|
|
}
|