Volltext-Suche: Rose-Beziehung von File zu full_text
[kivitendo-erp.git] / scripts / boot / systemd / kivitendo-task-server.service
index 12e72d2..75efd8c 100644 (file)
@@ -1,13 +1,19 @@
 [Unit]
 Description=kivitendo background jobs server
+Requires=postgresql.service
+After=postgresql.service
 
 [Service]
 Type=forking
-ExecStart=/opt/kivitendo/scripts/task_server.pl start
-ExecStop=/opt/kivitendo/scripts/task_server.pl stop
+# Change the user to the one your web server runs as.
+User=www-data
+# Change these two to point to the kivitendo "task_server.pl" location.
+ExecStart=/var/www/kivitendo-erp/scripts/task_server.pl start
+ExecStop=/var/www/kivitendo-erp/scripts/task_server.pl stop
 Restart=always
-Requires=postgresql.service
-After=postgresql.service
+ProtectSystem=full
+ProtectHome=yes
+PrivateTmp=yes
 
 [Install]
 WantedBy=multi-user.target