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:
parent
9e01268f33
commit
85449b1102
|
@ -3,6 +3,7 @@ Description="<%= @name %> Lodgeit server"
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
WorkingDir=/srv/lodgeit/<%= @name %>
|
||||||
ExecStart=/usr/bin/python /srv/lodgeit/<%= @name %>/manage.py runserver -h 127.0.0.1 -p <%= @port %>
|
ExecStart=/usr/bin/python /srv/lodgeit/<%= @name %>/manage.py runserver -h 127.0.0.1 -p <%= @port %>
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in New Issue