git.iko.soy/typeable/nixpkgs
on master help sign in
systemd-journald service: restart instead of stop and start

Also restart when configuration is changed.

commitff0b8b22250999d3274883fe4c1f7ba649753aa9 authorNikolay Amiantov <ab@fmap.me> dateFri 30 Sep 2016, 15:46 (10 years ago) parent7466214
1 file changed+2
nixos/modules/system/boot/systemd.nix+2
nixos/modules/system/boot/systemd.nix+2
@@ -808,6 +808,8 @@ in
808808 systemd.services.systemd-user-sessions.restartIfChanged = false; # Restart kills all active sessions.
809809 systemd.services.systemd-logind.restartTriggers = [ config.environment.etc."systemd/logind.conf".source ];
810810 systemd.services.systemd-logind.stopIfChanged = false;
811+ systemd.services.systemd-journald.restartTriggers = [ config.environment.etc."systemd/journald.conf".source ];
812+ systemd.services.systemd-journald.stopIfChanged = false;
811813 systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
812814 systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
813815 systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.automount" ];