diff options
| author | Oliver Charles <ollie@ocharles.org.uk> | 2014-02-02 10:24:49 +0000 |
|---|---|---|
| committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-02 15:56:22 +0100 |
| commit | 0d18d39e983fd6b7ad0535d1622cec608b4622e3 (patch) | |
| tree | 9704a05110ac9f9cacff6a1a86a319acc5375e52 /pkgs/development/python-modules/GitPython/hardcode-git-path.patch | |
| parent | 4a55391f1f8f02e1e02566ea89af1e2c2ab7338c (diff) | |
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.
Diffstat (limited to 'pkgs/development/python-modules/GitPython/hardcode-git-path.patch')
0 files changed, 0 insertions, 0 deletions
