diff --git a/prometheus-mumble.service b/prometheus-mumble.service new file mode 100644 index 0000000..f23326b --- /dev/null +++ b/prometheus-mumble.service @@ -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 diff --git a/run-server.sh b/run-server.sh new file mode 100755 index 0000000..75bcfec --- /dev/null +++ b/run-server.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +here=$(dirname $0) +. $here/.venv/bin/activate +cd $here/src +exec python server.py