* More tasks that shouldn't be restarted (though they're harmless).

svn path=/nixos/trunk/; revision=33238
This commit is contained in:
Eelco Dolstra 2012-03-18 18:09:17 +00:00
parent 4acc48fc2d
commit 9ba5f09e44

View File

@ -10,6 +10,7 @@ with pkgs.lib;
{ name = "boot";
startOn = "startup";
task = true;
restartIfChanged = false;
script = "telinit 2";
};
@ -20,11 +21,14 @@ with pkgs.lib;
task = true;
restartIfChanged = false;
script =
''
case "$RUNLEVEL" in
0) initctl start shutdown --no-wait MODE=poweroff;;
1) initctl start shutdown --no-wait MODE=maintenance;;
2) true;;
6) initctl start shutdown --no-wait MODE=reboot;;
*) echo "Unsupported runlevel: $RUNLEVEL";;
esac