mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 16:15:30 +00:00
e91d882a94
style of declaring Upstart jobs. While at it, converted them to the current NixOS module style and improved some option descriptions. Hopefully I didn't break too much :-) svn path=/nixos/trunk/; revision=17761
23 lines
385 B
Nix
23 lines
385 B
Nix
{ config, pkgs, ... }:
|
|
|
|
###### implementation
|
|
|
|
{
|
|
jobAttrs.maintenance_shell =
|
|
{ name = "maintenance-shell";
|
|
|
|
startOn = [ "maintenance" "stalled" ];
|
|
|
|
task = true;
|
|
|
|
script =
|
|
''
|
|
exec < /dev/tty1 > /dev/tty1 2>&1
|
|
echo \
|
|
echo "<<< MAINTENANCE SHELL >>>"
|
|
echo ""
|
|
exec ${pkgs.bash}/bin/sh
|
|
'';
|
|
};
|
|
}
|