From 9ba5f09e4465419f4402514923321bdf0ccae52d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 18 Mar 2012 18:09:17 +0000 Subject: [PATCH] * More tasks that shouldn't be restarted (though they're harmless). svn path=/nixos/trunk/; revision=33238 --- modules/system/upstart-events/runlevel.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/system/upstart-events/runlevel.nix b/modules/system/upstart-events/runlevel.nix index 10d108d9f40..016217ea3a6 100644 --- a/modules/system/upstart-events/runlevel.nix +++ b/modules/system/upstart-events/runlevel.nix @@ -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