
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.
18 lines
432 B
Desktop File
18 lines
432 B
Desktop File
[Unit]
|
|
Description=TeamPlayer Spin Doctor
|
|
Documentation=https://bitbucket.org/marduk/teamplayer/
|
|
Requires=teamplayer-pre.service
|
|
After=teamplayer-pre.service
|
|
After=teamplayer-wsgi.service
|
|
|
|
[Service]
|
|
User=TP_USER
|
|
Environment=PYTHONPATH=TP_HOME
|
|
Environment=DJANGO_SETTINGS_MODULE=project.settings_local
|
|
WorkingDirectory=TP_HOME
|
|
ExecStart=TP_HOME/bin/python manage.py spindoctor --verbosity=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|