renable nextcloud cron

This commit is contained in:
stubbfel
2022-11-20 20:12:41 +01:00
parent c2a005a465
commit 0f1e7bcf67

View File

@@ -193,18 +193,18 @@ in
services.cron.enable = true;
services.redis.servers."".enable = true;
#systemd.timers.nextcloud-cron = {
# wantedBy = [ "timers.target" ];
# timerConfig.OnBootSec = "5m";
# timerConfig.OnUnitActiveSec = "15m";
# timerConfig.Unit = "nextcloud-cron.service";
#};
systemd.timers.nextcloud-cron = {
wantedBy = [ "timers.target" ];
timerConfig.OnBootSec = "5m";
timerConfig.OnUnitActiveSec = "15m";
timerConfig.Unit = "nextcloud-cron.service";
};
#systemd.services.nextcloud-cron = {
# environment.NEXTCLOUD_CONFIG_DIR = "/var/www/nextcloud/config";
# serviceConfig.Type = "oneshot";
# serviceConfig.User = "nextcloud";
# serviceConfig.ExecStart = "${myPhp}/bin/php --define apc.enable_cli=1 -f /var/www/nextcloud/cron.php";
#};
systemd.services.nextcloud-cron = {
environment.NEXTCLOUD_CONFIG_DIR = "/var/www/nextcloud/config";
serviceConfig.Type = "oneshot";
serviceConfig.User = "nextcloud";
serviceConfig.ExecStart = "${myPhp}/bin/php --define apc.enable_cli=1 -f /var/www/nextcloud/cron.php";
};
}