nixpkgs/test/upstart-jobs/maintenance-shell.nix

20 lines
250 B
Nix
Raw Normal View History

{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
";
}