
The reason we had to put a timeout in was that we weren't sending the correct signal. This change fixes that.
24 lines
649 B
Desktop File
24 lines
649 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
|
|
KillSignal=SIGQUIT
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|