Add WorkingDir to systemd service template

When started from the root directory, lodgeit generates errors on
startup like

fatal: Not a git repository (or any of the parent directories): .git

Starting it from the proper checkout solves these errors.

Change-Id: I34a44db07d39a2f1bcf85bcffe6654ceca080dc3
This commit is contained in:
Jens Harbott 2018-04-26 11:44:25 +00:00
parent 9e01268f33
commit 85449b1102
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Description="<%= @name %> Lodgeit server"
After=network-online.target
[Service]
WorkingDir=/srv/lodgeit/<%= @name %>
ExecStart=/usr/bin/python /srv/lodgeit/<%= @name %>/manage.py runserver -h 127.0.0.1 -p <%= @port %>
[Install]