mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
rsync service: restart service on configuration change
This commit is contained in:
parent
541377e5f0
commit
94fc613cc7
@ -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";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user