nixpkgs/modules
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
..
config Revert "Setting the system utillinux to be utillinuxCurses." 2012-12-17 13:09:05 -05:00
hardware Add new 'hardware.cpu.amd.updateMicrocode' option. 2012-09-11 18:44:37 +02:00
installer nixos-rebuild: Fix the check for running nix-daemon 2012-12-21 00:18:12 +01:00
misc Hackery to build against both the nixpkgs master and systemd branch 2012-12-13 15:04:09 +01:00
profiles In headless deployments, don't start agetty on the console 2012-10-30 13:53:36 +01:00
programs update nixos channel path 2012-12-14 18:24:41 +01:00
security pam_ssh_agent_auth: Use /etc/ssh/authorized_keys.d 2012-12-17 21:14:09 +01:00
services For some units, use "systemctl restart" rather than "systemctl stop/start" 2013-01-05 01:05:25 +01:00
system For some units, use "systemctl restart" rather than "systemctl stop/start" 2013-01-05 01:05:25 +01:00
tasks Refactor common unionfs-fuse initrd prep into a separate module 2012-12-16 12:33:36 -05:00
testing test-instrumentation.nix: Don't start agetty on hvc0 2012-11-12 09:19:25 +01:00
virtualisation Update create-s3-amis and amazon-image.nix to recent nixos 2012-12-18 13:44:47 -05:00
module-list.nix Refactor common unionfs-fuse initrd prep into a separate module 2012-12-16 12:33:36 -05:00
rename.nix Adding a rename line for rt73 -> ralink. 2012-08-11 14:54:43 +02:00