rsync service: restart service on configuration change

This commit is contained in:
Nadrieril 2017-07-21 19:14:21 +01:00
parent 541377e5f0
commit 94fc613cc7

View File

@ -95,6 +95,7 @@ in
systemd.services.rsyncd = {
description = "Rsync daemon";
wantedBy = [ "multi-user.target" ];
restartTriggers = [ config.environment.etc."rsyncd.conf".source ];
serviceConfig.ExecStart = "${pkgs.rsync}/bin/rsync --daemon --no-detach";
};