maybe chmod 0755 'systemd/system/netfilter-persistent.service.d'
maybe chmod 0644 'systemd/system/netfilter-persistent.service.d/iptables.conf'
maybe chmod 0755 'systemd/system/network-online.target.wants'
+maybe chmod 0644 'systemd/system/nextcloudcron.service'
+maybe chmod 0644 'systemd/system/nextcloudcron.timer'
maybe chmod 0755 'systemd/system/paths.target.wants'
maybe chmod 0755 'systemd/system/sockets.target.wants'
maybe chmod 0755 'systemd/system/sysinit.target.wants'
# Cronjob for Nextcloud
-*/15 * * * * www-data php -f /var/www/nextcloud/cron.php
+# */15 * * * * www-data php -f /var/www/nextcloud/cron.php
[opcache]
; Determines if Zend OPCache is enabled
-opcache.enable=0
+opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0
; configuration for php opcache module
; priority=10
zend_extension=opcache.so
-; opcache.enable_cli=1
-opcache.interned_strings_buffer=8
-opcache.max_accelerated_files=10000
-opcache.memory_consumption=128
-opcache.save_comments=1
-opcache.revalidate_freq=1
+; opcache.enable_cli=0
+; opcache.interned_strings_buffer=8
+; opcache.max_accelerated_files=10000
+; opcache.memory_consumption=128
+; opcache.save_comments=1
+; opcache.revalidate_freq=1
--- /dev/null
+[Unit]
+Description=Nextcloud cron.php job
+
+[Service]
+User=www-data
+ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php
+KillMode=process
--- /dev/null
+[Unit]
+Description=Run Nextcloud cron.php every 5 minutes
+
+[Timer]
+OnBootSec=5min
+OnUnitActiveSec=5min
+Unit=nextcloudcron.service
+
+[Install]
+WantedBy=timers.target
--- /dev/null
+/etc/systemd/system/nextcloudcron.timer
\ No newline at end of file