summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-11-09 12:47:22 +0100
committerGitHub <noreply@github.com>2020-11-09 12:47:22 +0100
commite74d6735f09dd72f13d2450e153acd0aec64c669 (patch)
tree431750c07fe075eb77b64c7db25f7dd435b9569a /nixos
parentbf76bbafddd5cb40bb7fc906ae2a1bb7cdd8a2ed (diff)
parent91b20fb1aa6b44fbd9c9d26d62f3e956cfacda63 (diff)
downloadnixpkgs-e74d6735f09dd72f13d2450e153acd0aec64c669.tar
nixpkgs-e74d6735f09dd72f13d2450e153acd0aec64c669.tar.gz
nixpkgs-e74d6735f09dd72f13d2450e153acd0aec64c669.tar.bz2
nixpkgs-e74d6735f09dd72f13d2450e153acd0aec64c669.tar.lz
nixpkgs-e74d6735f09dd72f13d2450e153acd0aec64c669.tar.xz
nixpkgs-e74d6735f09dd72f13d2450e153acd0aec64c669.tar.zst
nixpkgs-e74d6735f09dd72f13d2450e153acd0aec64c669.zip
Merge pull request #103170 from nh2/roundcube-restart-on-config-changes
roundcube service: Restart on config changes
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/mail/roundcube.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/roundcube.nix b/nixos/modules/services/mail/roundcube.nix
index a0bbab64985..ee7aa7e22fb 100644
--- a/nixos/modules/services/mail/roundcube.nix
+++ b/nixos/modules/services/mail/roundcube.nix
@@ -204,6 +204,11 @@ in
     };
     systemd.services.phpfpm-roundcube.after = [ "roundcube-setup.service" ];
 
+    # Restart on config changes.
+    systemd.services.phpfpm-roundcube.restartTriggers = [
+      config.environment.etc."roundcube/config.inc.php".source
+    ];
+
     systemd.services.roundcube-setup = mkMerge [
       (mkIf (cfg.database.host == "localhost") {
         requires = [ "postgresql.service" ];