Add systemd template service unit
This commit is contained in:
parent
1bc39bc8c9
commit
daadc9c82d
1 changed files with 12 additions and 0 deletions
12
umi@.service
Normal file
12
umi@.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Discord bot for logging VC joins and playing music
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
User=discord
|
||||
WorkingDirectory=/srv/discord/%I
|
||||
ExecStart=/srv/discord/.venv/bin/python -u app.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue