From: Frank Brehm Date: Wed, 15 Sep 2021 15:47:15 +0000 (+0200) Subject: daily autocommit X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=1233a4d83a80ff5e0b7d301bb9788aeab5962805;p=config%2Fns1%2Fetc.git daily autocommit --- diff --git a/.etckeeper b/.etckeeper index 8a30c2c..af8d6fb 100755 --- a/.etckeeper +++ b/.etckeeper @@ -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' diff --git a/cron.d/nextcloud b/cron.d/nextcloud index a2cf25e..49dc7ef 100644 --- a/cron.d/nextcloud +++ b/cron.d/nextcloud @@ -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 diff --git a/php/7.4/apache2/php.ini b/php/7.4/apache2/php.ini index e1ba03f..e30c341 100644 --- a/php/7.4/apache2/php.ini +++ b/php/7.4/apache2/php.ini @@ -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 diff --git a/php/7.4/mods-available/opcache.ini b/php/7.4/mods-available/opcache.ini index 8a0c41a..15a43ac 100644 --- a/php/7.4/mods-available/opcache.ini +++ b/php/7.4/mods-available/opcache.ini @@ -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 index 0000000..dcdd465 --- /dev/null +++ b/systemd/system/nextcloudcron.service @@ -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 index 0000000..eda82c9 --- /dev/null +++ b/systemd/system/nextcloudcron.timer @@ -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 index 0000000..28c3b9b --- /dev/null +++ b/systemd/system/timers.target.wants/nextcloudcron.timer @@ -0,0 +1 @@ +/etc/systemd/system/nextcloudcron.timer \ No newline at end of file