]> Frank Brehm's Git Trees - config/ns1/etc.git/commitdiff
daily autocommit
authorFrank Brehm <frank@brehm-online.com>
Wed, 15 Sep 2021 15:47:15 +0000 (17:47 +0200)
committerFrank Brehm <frank@brehm-online.com>
Wed, 15 Sep 2021 15:47:15 +0000 (17:47 +0200)
.etckeeper
cron.d/nextcloud
php/7.4/apache2/php.ini
php/7.4/mods-available/opcache.ini
systemd/system/nextcloudcron.service [new file with mode: 0644]
systemd/system/nextcloudcron.timer [new file with mode: 0644]
systemd/system/timers.target.wants/nextcloudcron.timer [new symlink]

index 8a30c2ccfaa3440a79b02e85a04ad07dc55d3f31..af8d6fbfb8739047da2bec37b3f5b00202188d6d 100755 (executable)
@@ -2344,6 +2344,8 @@ maybe chmod 0755 'systemd/system/multi-user.target.wants'
 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'
index a2cf25e76b52d91d7071a1859689043c5c6bd680..49dc7ef5130650aec54f4b7eb0affa94d210ab59 100644 (file)
@@ -1,2 +1,2 @@
 # Cronjob for Nextcloud
-*/15  *  *  *  * www-data php -f /var/www/nextcloud/cron.php
+*/15  *  *  *  * www-data php -f /var/www/nextcloud/cron.php
index e1ba03fe5720d0d48d0f27f8486b36643d2404c8..e30c3417f8116f3c4acb4f35e9967c61001f9f0d 100644 (file)
@@ -1766,7 +1766,7 @@ ldap.max_links = -1
 
 [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
index 8a0c41aadea09628261e8f711dc500dcbdb21aec..15a43ac532982add55b3d3353694643a1fbbc97b 100644 (file)
@@ -1,9 +1,9 @@
 ; 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
diff --git a/systemd/system/nextcloudcron.service b/systemd/system/nextcloudcron.service
new file mode 100644 (file)
index 0000000..dcdd465
--- /dev/null
@@ -0,0 +1,7 @@
+[Unit]
+Description=Nextcloud cron.php job
+
+[Service]
+User=www-data
+ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php
+KillMode=process
diff --git a/systemd/system/nextcloudcron.timer b/systemd/system/nextcloudcron.timer
new file mode 100644 (file)
index 0000000..eda82c9
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Run Nextcloud cron.php every 5 minutes
+
+[Timer]
+OnBootSec=5min
+OnUnitActiveSec=5min
+Unit=nextcloudcron.service
+
+[Install]
+WantedBy=timers.target
diff --git a/systemd/system/timers.target.wants/nextcloudcron.timer b/systemd/system/timers.target.wants/nextcloudcron.timer
new file mode 120000 (symlink)
index 0000000..28c3b9b
--- /dev/null
@@ -0,0 +1 @@
+/etc/systemd/system/nextcloudcron.timer
\ No newline at end of file