nixpkgs-suyu/upstart-jobs/maintenance-shell.nix
Marc Weber f76096bdf9 Convert "maintenance-shell"
svn path=/nixos/branches/fix-style/; revision=14405
2009-03-06 12:27:42 +00:00

24 lines
451 B
Nix

{pkgs, config, ...}:
###### implementation
{
services = {
extraJobs = [{
name = "maintenance-shell";
job = ''
start on maintenance
start on stalled
script
exec < /dev/tty1 > /dev/tty1 2>&1
echo \"\"
echo \"<<< MAINTENANCE SHELL >>>\"
echo \"\"
exec ${pkgs.bash}/bin/sh
end script
'';
}];
};
}