summaryrefslogtreecommitdiffstats
path: root/2configs/deployment
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-07-26 22:34:47 +0200
committermakefu <github@syntax-fehler.de>2018-07-26 22:34:47 +0200
commitda915fb0b82b88f30dc75795e43ff3c1551591d5 (patch)
tree9a7b5cc2eef2126dea7b40f054bab1edf4afd060 /2configs/deployment
parent20c47eb1b804b47893933a7d671a1789c0e68605 (diff)
ma owncloud: enable owncloud cron service
Diffstat (limited to '2configs/deployment')
-rw-r--r--2configs/deployment/owncloud.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/2configs/deployment/owncloud.nix b/2configs/deployment/owncloud.nix
index b3ea7ed4e..cfde0aba8 100644
--- a/2configs/deployment/owncloud.nix
+++ b/2configs/deployment/owncloud.nix
@@ -143,6 +143,7 @@ let
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
+ opcache.file_cache = .opcache
zend_extension=${pkgs.php}/lib/php/extensions/opcache.so
display_errors = on
@@ -155,6 +156,13 @@ let
extension=${pkgs.phpPackages.redis}/lib/php/extensions/redis.so
extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so
'';
+ systemd.services."nextcloud-cron-${domain}" = {
+ serviceConfig = {
+ User = "nginx";
+ ExecStart = "${pkgs.php}/bin/php -f ${root}/cron.php";
+ };
+ startAt = "*:0/15";
+ };
};
in {
imports = [