Systemd: start lodgeit after network
If it starts too early, it may not be able to resolve its database connection. Change-Id: I470b4377a39f95e0da1617abd1325327823bdc83
This commit is contained in:
parent
27183a432f
commit
9e01268f33
@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description="<%= @name %> Lodgeit server"
|
Description="<%= @name %> Lodgeit server"
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
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 %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user