mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
feat: added nextcloud cron job as systemd service
This commit is contained in:
7
nextcloud/nextcloud-cron.service
Normal file
7
nextcloud/nextcloud-cron.service
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run Nextcloud Cron Job
|
||||||
|
After=default.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/podman exec -u abc nextcloud php /app/www/public/cron.php
|
||||||
9
nextcloud/nextcloud-cron.timer
Normal file
9
nextcloud/nextcloud-cron.timer
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run Nextcloud Cron Job Timer
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*:0/5
|
||||||
|
Unit=nextcloud-cron.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
Reference in New Issue
Block a user