Go to file
Eelco Dolstra 96ba0ca283 For some units, use "systemctl restart" rather than "systemctl stop/start"
During a configuration switch, changed units are stopped in the old
configuration, then started in the new configuration (i.e. after
running the activation script and running "systemctl daemon-reload").
This ensures that services are stopped using the ExecStop/ExecStopPost
commands from the old configuration.

However, for some services it's undesirable to stop them; in
particular dhcpcd, which deconfigures its network interfaces when it
stops.  This is dangerous when doing remote upgrades - usually things
go right (especially because the switch script ignores SIGHUP), but
not always (see 9aa69885f0).  Likewise,
sshd should be kept running for as long as possible to prevent a
lock-out if the switch fails.

So the new option ‘stopIfChanged = false’ causes "systemctl restart"
to be used instead of "systemctl stop" followed by "systemctl start".
This is only proper for services that don't have stop commands.  (And
it might not handle dependencies properly in some cases, but I'm not
sure.)
2013-01-05 01:05:25 +01:00
doc Merge remote-tracking branch 'origin/master' into systemd 2012-12-11 17:40:39 +01:00
gui renaming all occurrences of /var/run/{booted,current}-system 2012-07-23 14:01:35 -04:00
lib systemd mount units: use 'escapeSystemdPath' from lib/utils 2013-01-01 14:53:54 +01:00
maintainers Update create-s3-amis and amazon-image.nix to recent nixos 2012-12-18 13:44:47 -05:00
modules For some units, use "systemctl restart" rather than "systemctl stop/start" 2013-01-05 01:05:25 +01:00
tests Remove obsolete file 2012-12-21 00:18:12 +01:00
.gitignore Add a .gitignore 2012-06-18 18:16:38 -04:00
.version * Add a command "nixos-version" that prints the version of the 2012-04-10 20:56:38 +00:00
COPYING * Add a license, finally :-) 2010-05-28 11:48:41 +00:00
default.nix Use the binary cache in the installer 2012-12-08 19:00:06 +01:00
README * URL updates. 2008-05-09 15:08:43 +00:00
release-combined.nix * Include all of Nixpkgs. 2012-04-11 09:17:32 +00:00
release.nix Run all tests on both 32 and 64 bit 2012-10-24 12:59:19 +02:00

*** 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.