nixpkgs/modules/services
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 9aa69885f04969e5d31dcb8265c327adc908954e).  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
..
amqp strip trailing whitespace; no functional change 2011-09-14 18:20:50 +00:00
audio Whitespace 2012-10-09 15:14:32 -04:00
backup * Drop references to activation scriptlets that no longer exist. 2012-03-15 14:21:17 +00:00
databases systemd: convert mongodb job to service 2012-12-27 12:23:50 +01:00
games strip trailing whitespace; no functional change 2011-09-14 18:20:50 +00:00
hardware Merge remote-tracking branch 'origin/master' into systemd 2012-12-11 17:40:39 +01:00
logging Merge remote-tracking branch 'origin/master' into systemd 2012-11-30 16:12:04 +01:00
mail Merge remote-tracking branch 'origin/master' into systemd 2012-10-08 13:47:37 -04:00
misc Run the garbage collector as a systemd service 2013-01-04 14:04:41 +01:00
monitoring systemd: convert smartd job to service 2012-12-27 12:23:50 +01:00
network-filesystems systemd: convert samba jobs to systemd services (samba.target) 2012-12-27 12:23:50 +01:00
networking For some units, use "systemctl restart" rather than "systemctl stop/start" 2013-01-05 01:05:25 +01:00
printing Undo accidental commit 2012-10-29 12:44:38 +01:00
scheduling Global replace /var/run/current-system -> /run/current-system 2012-07-16 11:34:21 -04:00
security F-Prot virus signaure database updater: package 2012-07-24 10:52:04 +03:00
system nscd: use proper systemd.special(7) targets 2012-12-27 12:23:50 +01:00
ttys Remove some obsolete options 2012-10-29 21:10:00 +01:00
web-servers Merge remote-tracking branch 'origin/master' into systemd 2012-11-30 16:12:04 +01:00
x11 Merge remote-tracking branch 'origin/master' into systemd 2012-11-30 16:12:04 +01:00