Start at boot

This commit is contained in:
stb 2024-01-24 17:10:30 +00:00
parent 734e1c7f72
commit 5248462fb5
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,9 @@
[Unit]
Description=Export Mumble Server stats for Prometheus
After=mumble-server.service
[Service]
ExecStart=/home/chaos/prometheus-mumble/run-server.sh
[Install]
WantedBy=multi-user.target

8
run-server.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
set -e
here=$(dirname $0)
. $here/.venv/bin/activate
cd $here/src
exec python server.py