2015-09-23 05:35:47 +02:00
|
|
|
[Unit]
|
|
|
|
Description=TeamPlayer WSGI Server
|
|
|
|
Documentation=https://bitbucket.org/marduk/teamplayer/
|
|
|
|
Requires=teamplayer-pre.service
|
|
|
|
After=teamplayer-pre.service
|
|
|
|
Wants=nginx.service
|
|
|
|
|
|
|
|
[Service]
|
2015-09-23 12:06:39 +02:00
|
|
|
Type=notify
|
2015-09-23 05:35:47 +02:00
|
|
|
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
|
2015-09-23 12:00:35 +02:00
|
|
|
KillSignal=SIGQUIT
|
2015-09-23 05:35:47 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|