Merge pull request #103170 from nh2/roundcube-restart-on-config-changes

roundcube service: Restart on config changes
This commit is contained in:
Maximilian Bosch 2020-11-09 12:47:22 +01:00 committed by GitHub
commit e74d6735f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ];