From 5248462fb5a62f25e6d6867feb12825f24915214 Mon Sep 17 00:00:00 2001 From: stb Date: Wed, 24 Jan 2024 17:10:30 +0000 Subject: [PATCH] Start at boot --- prometheus-mumble.service | 9 +++++++++ run-server.sh | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 prometheus-mumble.service create mode 100755 run-server.sh 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