nixpkgs/test/upstart-jobs/maintenance-shell.nix
Eelco Dolstra 49b2a218b5 * Support entering maintenance mode ("shutdown now") and powering off
the system ("halt").

svn path=/nixu/trunk/; revision=7083
2006-11-20 20:50:52 +00:00

20 lines
250 B
Nix

{bash}:
{
name = "maintenance-shell";
job = "
start on maintenance
start on stalled
script
exec < /dev/tty1 > /dev/tty1 2>&1
echo \"\"
echo \"<<< MAINTENANCE SHELL >>>\"
echo \"\"
exec ${bash}/bin/sh
end script
";
}