virtual-appliance/appliances/teamplayer/teamplayer-wsgi.service
Albert Hopkins 73c5fce1e0 teamplayer: replace openrc-style startup with systemd units
When I switched over from openrc to systemd I was being lazy and took
advantage of the fact that /etc/local.d still gets run as usual on
Gentoo.  This commit finally does a proper(-ish) systemd startup using
(3) unit files.
2015-09-23 03:35:47 +00:00

24 lines
648 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]
User=teamplayer
WorkingDirectory=/opt/teamplayer
Environment=PYTHONPATH=/opt/teamplayer
Environment=DJANGO_SETTINGS_MODULE=project.settings_local
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
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target