summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/base/templates/cron@.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/nextcloud/base/templates/cron@.service.j2')
-rw-r--r--roles/apps/nextcloud/base/templates/cron@.service.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/apps/nextcloud/base/templates/cron@.service.j2 b/roles/apps/nextcloud/base/templates/cron@.service.j2
new file mode 100644
index 00000000..d8cde0a3
--- /dev/null
+++ b/roles/apps/nextcloud/base/templates/cron@.service.j2
@@ -0,0 +1,15 @@
+[Unit]
+Description=Nextcloud cron.php job for %i
+
+[Service]
+Type=oneshot
+ExecStart=/usr/local/bin/nextcloud-cron %i
+NoNewPrivileges=yes
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectSystem=strict
+ProtectHome=yes
+ProtectKernelTunables=yes
+ProtectControlGroups=yes
+RestrictRealtime=yes
+RestrictAddressFamilies=AF_UNIX AF_INET