umi/contrib/umi@.service

15 lines
429 B
Desktop File

[Unit]
Description=Discord bot for logging VC joins and playing music
After=network.target
[Service]
Restart=on-failure
User=discord
WorkingDirectory=/srv/discord/%I
EnvironmentFile=/srv/discord/%I/.env
ExecStart=/srv/discord/.venv/bin/python -u app.py
ExecStopPost=/srv/discord/%I/notify.sh "umi instance stopped: `%i`"
ExecStartPost=/srv/discord/%I/notify.sh "umi instance started: `%i`"
[Install]
WantedBy=multi-user.target