virtual-appliance/appliances/teamplayer/teamplayer-pre.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

16 lines
473 B
Desktop File

[Unit]
Description=TeamPlayer (Pre)
Documentation=https://bitbucket.org/marduk/teamplayer/
Requires=postgresql-PGVER.service
After=postgresql-PGVER.service
[Service]
Type=oneshot
User=TP_USER
Environment=PYTHONPATH=TP_HOME
Environment=DJANGO_SETTINGS_MODULE=project.settings_local
WorkingDirectory=TP_HOME
ExecStart=-/usr/bin/createuser -U postgres -D -S -R TP_USER
ExecStart=-/usr/bin/createdb -U postgres TP_USER
ExecStart=TP_HOME/bin/python manage.py migrate --noinput