virtual-appliance/appliances/teamplayer/teamplayer-wsgi.service
Albert Hopkins acf9ec8c91 teamplayer: updates
Update to work with Django 1.01 since teamplayer (default) supports it now.
Also use settings.py instead of settings_local.py which I now consider an
anti-pattern.
2016-11-20 17:31:23 +00:00

24 lines
652 B
Desktop File

[Unit]
Description=TeamPlayer WSGI Server
Documentation=https://bitbucket.org/marduk/teamplayer/
Requires=teamplayer-pre.service
After=teamplayer-pre.service
Wants=nginx.service
[Service]
Type=notify
User=teamplayer
WorkingDirectory=/opt/teamplayer
Environment=PYTHONPATH=/opt/teamplayer
Environment=DJANGO_SETTINGS_MODULE=project.settings
WorkingDirectory=/opt/teamplayer
ExecStart=/opt/teamplayer/bin/uwsgi --master -p 4 \
--socket=TP_DB/teamplayer.sock \
--chmod=660 -w project.wsgi --uid=teamplayer --gid=teamplayer \
--pidfile=TP_DB/teamplayer.pid
PIDFile=TP_DB/teamplayer.pid
KillSignal=SIGQUIT
[Install]
WantedBy=multi-user.target