3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/system/activation
Oliver Charles 0d18d39e98 switch-to-configuration.pl: Handle successful auto-restarts
switch-to-configuration.pl is currently hard-coded to assume that if a
unit is in the "auto-restart" state that something has gone wrong, but
this is not strictly true. For example, I run offlineimap as a oneshot
service restarting itself every minute (on success). NixOS currently
thinks that offlineimap has failed to start as it enters the
auto-restart state, because it doesn't consider why the unit failed.

This commit changes switch-to-configuration.pl to inspect the full
status of a unit in auto-restart state, and now only considers it failed
if the ExecMainStatus is non-zero.
2014-02-02 15:56:22 +01:00
..
activation-script.nix Add some primops to lib 2013-11-12 13:48:30 +01:00
no-clone.nix Remove remaining uses of mkOverrideTemplate 2013-10-28 22:45:58 +01:00
switch-to-configuration.pl switch-to-configuration.pl: Handle successful auto-restarts 2014-02-02 15:56:22 +01:00
top-level.nix Fix passing of kernel parameters 2013-12-02 11:56:58 -05:00