X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/54307494841ee7557e05599318725838f7fae990..fdebfd5d0c558cb156849b01c9c9268b29dc443b:/scripts/boot/systemd/kivitendo-task-server.service?ds=sidebyside diff --git a/scripts/boot/systemd/kivitendo-task-server.service b/scripts/boot/systemd/kivitendo-task-server.service index a9e6778ff..75efd8c0f 100644 --- a/scripts/boot/systemd/kivitendo-task-server.service +++ b/scripts/boot/systemd/kivitendo-task-server.service @@ -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