Start at boot
This commit is contained in:
parent
734e1c7f72
commit
5248462fb5
9
prometheus-mumble.service
Normal file
9
prometheus-mumble.service
Normal 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
8
run-server.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
here=$(dirname $0)
|
||||||
|
. $here/.venv/bin/activate
|
||||||
|
cd $here/src
|
||||||
|
exec python server.py
|
Loading…
Reference in a new issue