NixOS containers: Use exit status 133 for reboots

This commit is contained in:
Eelco Dolstra 2014-08-24 12:27:32 +02:00
parent 891657b634
commit 0263a8f860
2 changed files with 8 additions and 1 deletions

View File

@ -267,9 +267,12 @@ in
NotifyAccess = "all";
# Note that on reboot, systemd-nspawn returns 10, so this
# Note that on reboot, systemd-nspawn returns 133, so this
# unit will be restarted. On poweroff, it returns 0, so the
# unit won't be restarted.
RestartForceExitStatus = "133";
SuccessExitStatus = "133";
Restart = "on-failure";
# Hack: we don't want to kill systemd-nspawn, since we call

View File

@ -7785,6 +7785,10 @@ let
linuxHeaders = linuxHeaders_3_14;
};
systemd_test = callPackage ../os-specific/linux/systemd/test.nix {
linuxHeaders = linuxHeaders_3_14;
};
systemtap = callPackage ../development/tools/profiling/systemtap {
inherit (gnome) libglademm;
};