summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service')
-rw-r--r--www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service b/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service
new file mode 100644
index 000000000000..27fc4e827df0
--- /dev/null
+++ b/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Push daemon for Nextcloud clients
+After=mysqld.service
+After=redis.service
+
+[Service]
+Type=simple
+Environment=NOTIFY_PUSH_NEXTCLOUD_CONFIGFILE=
+EnvironmentFile=-/etc/conf.d/nextcloud-notify_push
+ExecStart=/usr/bin/nextcloud-notify_push $NOTIFY_PUSH_NEXTCLOUD_CONFIGFILE
+Restart=on-failure
+
+# Adjust user/group to match Nextcloud configuration.
+# E.g. make sure that User is able to access NOTIFY_PUSH_NEXTCLOUD_CONFIGFILE
+# when used; make sure that webserver is in Group when using sockets
+User=nobody
+Group=nobody
+
+[Install]
+WantedBy=multi-user.target