diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-09-30 15:46:22 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-09-30 17:49:30 +0300 |
commit | ff0b8b22250999d3274883fe4c1f7ba649753aa9 (patch) | |
tree | b9db44b5c7c8673f6e25489a62823d024953bf63 /nixos | |
parent | 7466214fa329a83c4875e8cb723022757c87dd91 (diff) | |
download | nixlib-ff0b8b22250999d3274883fe4c1f7ba649753aa9.tar nixlib-ff0b8b22250999d3274883fe4c1f7ba649753aa9.tar.gz nixlib-ff0b8b22250999d3274883fe4c1f7ba649753aa9.tar.bz2 nixlib-ff0b8b22250999d3274883fe4c1f7ba649753aa9.tar.lz nixlib-ff0b8b22250999d3274883fe4c1f7ba649753aa9.tar.xz nixlib-ff0b8b22250999d3274883fe4c1f7ba649753aa9.tar.zst nixlib-ff0b8b22250999d3274883fe4c1f7ba649753aa9.zip |
systemd-journald service: restart instead of stop and start
Also restart when configuration is changed.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index b724995bb1fc..2ac041f14128 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -808,6 +808,8 @@ in systemd.services.systemd-user-sessions.restartIfChanged = false; # Restart kills all active sessions. systemd.services.systemd-logind.restartTriggers = [ config.environment.etc."systemd/logind.conf".source ]; systemd.services.systemd-logind.stopIfChanged = false; + systemd.services.systemd-journald.restartTriggers = [ config.environment.etc."systemd/journald.conf".source ]; + systemd.services.systemd-journald.stopIfChanged = false; systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true; systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true; systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.automount" ]; |