Hi,
I’,m trying to reduce the cron job background interval. The Nextcloud instance is used as an image storage and private calendar. Hence, I don not need it to wake the HDD every 15 minutes for background jobs.
specs:
NextCloudPi version | v1.19.1 |
---|---|
NextCloudPi image | NextCloudPi_08-02-19 |
distribution | Debian Buster with Armbian Linux \l |
Nextcloud version | 17.0.1.1 |
I’ve followed the documentation:
I’ve adapted nextcloudcron.time:
[Unit]
Description=Run Nextcloud cron.php every 50 minutes
[Timer]
OnBootSec=50min
OnUnitActiveSec=50min
Unit=nextcloudcron.service
[Install]
WantedBy=timers.target
and nextcloudcron.service
[Unit]
Description=Nextcloud cron.php job
[Service]
User=eric
ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php
[Install]
WantedBy=basic.target
accordingly. My last try was to increase interval to 50 minutes.
Following the documentation I’ve enabled the service the terminal com:
eric@nextcloudpi:~$ systemctl enable --now nextcloudcron.timer
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: ,,, (eric)
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: ,,, (eric)
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'nextcloudcron.timer'.
Authenticating as: ,,, (eric)
Password:
==== AUTHENTICATION COMPLETE ===
Even after reboot the cron job interval continues to be 15 minute. Any advice would be really appreciated. I’d aim to extend the interval to 2 hours or so…
Best regards,
Eric