diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2024-02-04 23:52:23 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2024-02-05 01:29:13 +0100 |
commit | c64c45da9c541c1f923815fd0e512045f91accee (patch) | |
tree | 1cfae53f38044487e059ab63665116f529fae1c1 /nixos/modules/services/web-apps | |
parent | 42daa009280483580adb987d3fb836c27a954687 (diff) | |
download | nixlib-c64c45da9c541c1f923815fd0e512045f91accee.tar nixlib-c64c45da9c541c1f923815fd0e512045f91accee.tar.gz nixlib-c64c45da9c541c1f923815fd0e512045f91accee.tar.bz2 nixlib-c64c45da9c541c1f923815fd0e512045f91accee.tar.lz nixlib-c64c45da9c541c1f923815fd0e512045f91accee.tar.xz nixlib-c64c45da9c541c1f923815fd0e512045f91accee.tar.zst nixlib-c64c45da9c541c1f923815fd0e512045f91accee.zip |
nixos/nextcloud: don't execute cron when in maintenace/upgrade, don't kill cgroup
Those are upstream recommendations taken from https://github.com/nextcloud/documentation/blob/22d2472b8f721f2022b9ac0db254950a285ab086/admin_manual/configuration_server/background_jobs_configuration.rst#systemd
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r-- | nixos/modules/services/web-apps/nextcloud.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index e79c2d754f10..08f90dcf59d8 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -997,7 +997,9 @@ in { serviceConfig = { Type = "oneshot"; User = "nextcloud"; + ExecCondition = "${lib.getExe phpPackage} -f ${webroot}/occ status -e"; ExecStart = "${lib.getExe phpPackage} -f ${webroot}/cron.php"; + KillMode = "process"; }; }; nextcloud-update-plugins = mkIf cfg.autoUpdateApps.enable { |