From 94fc613cc7b2be6fb92ddfd5f2c1649b27459be0 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Fri, 21 Jul 2017 19:14:21 +0100 Subject: [PATCH] rsync service: restart service on configuration change --- nixos/modules/services/network-filesystems/rsyncd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/network-filesystems/rsyncd.nix b/nixos/modules/services/network-filesystems/rsyncd.nix index a52fec4c407..0759fcc2a3b 100644 --- a/nixos/modules/services/network-filesystems/rsyncd.nix +++ b/nixos/modules/services/network-filesystems/rsyncd.nix @@ -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"; };