3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos
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
..
doc Fixed a code typo in the documentation 2013-12-29 11:43:59 +01:00
gui
lib nixos X tests: wait for logind to link a session to the server 2014-01-22 14:23:56 -05:00
maintainers Don't include the code name in the EBS AMI name 2013-11-19 19:09:48 +01:00
modules switch-to-configuration.pl: Handle successful auto-restarts 2014-02-02 15:56:22 +01:00
tests nixos X tests: wait for logind to link a session to the server 2014-01-22 14:23:56 -05:00
COPYING
default.nix
README
release-combined.nix
release.nix

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.