Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / scripts / boot / systemd / kivitendo-task-server.service
index a9e6778..75efd8c 100644 (file)
@@ -1,14 +1,19 @@
 [Unit]
 Description=kivitendo background jobs server
+Requires=postgresql.service
+After=postgresql.service
 
 [Service]
 Type=forking
+# 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