nixpkgs/modules/system/boot
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
..
loader Merge remote-tracking branch 'upstream/master' into systemd 2012-12-17 13:03:56 -05:00
kernel.nix Remove last mention of aufs for completeness 2012-12-16 13:33:23 -05:00
luksroot.nix LUKS root: Fix key file check 2012-08-02 11:39:31 +02:00
modprobe.nix systemd: Use the kernel modules from /run/booted-system 2012-08-14 17:09:44 -04:00
shutdown.nix Fix a hang during shutdown 2012-08-14 16:45:50 -04:00
stage-1-init.sh iso-image: Use unionfs-fuse instead of aufs 2012-12-16 11:31:52 -05:00
stage-1.nix Turn fileSystems into an attribute set 2012-11-02 18:02:12 +01:00
stage-2-init.sh Remove outdated comment about EC2 booting into stage-2 directly 2012-11-02 17:07:53 +01:00
stage-2.nix Set uniqueness constraint on boot.devShmSize etc. 2012-10-23 07:50:23 -04:00
systemd-unit-options.nix For some units, use "systemctl restart" rather than "systemctl stop/start" 2013-01-05 01:05:25 +01:00
systemd.nix For some units, use "systemctl restart" rather than "systemctl stop/start" 2013-01-05 01:05:25 +01:00