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:
James E. Blair 2017-12-13 08:09:28 -08:00
parent 27183a432f
commit 9e01268f33
1 changed files with 1 additions and 0 deletions

View File

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