Author: eelco Date: Sun Mar 18 18:09:17 2012 New Revision: 33238 URL: https://nixos.org/websvn/nix/?rev=33238&sc=1
Log: * More tasks that shouldn't be restarted (though they're harmless). Modified: nixos/trunk/modules/system/upstart-events/runlevel.nix Modified: nixos/trunk/modules/system/upstart-events/runlevel.nix ============================================================================== --- nixos/trunk/modules/system/upstart-events/runlevel.nix Sun Mar 18 18:04:49 2012 (r33237) +++ nixos/trunk/modules/system/upstart-events/runlevel.nix Sun Mar 18 18:09:17 2012 (r33238) @@ -10,6 +10,7 @@ { name = "boot"; startOn = "startup"; task = true; + restartIfChanged = false; script = "telinit 2"; }; @@ -20,11 +21,14 @@ 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 _______________________________________________ nix-commits mailing list nix-comm...@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-commits