X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b3298009278b7174378128afaead662df283f39c..fdebfd5d0c558cb156849b01c9c9268b29dc443b:/scripts/boot/systemd/kivitendo-task-server.service diff --git a/scripts/boot/systemd/kivitendo-task-server.service b/scripts/boot/systemd/kivitendo-task-server.service index 12e72d229..75efd8c0f 100644 --- a/scripts/boot/systemd/kivitendo-task-server.service +++ b/scripts/boot/systemd/kivitendo-task-server.service @@ -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