From 1476d1b6c437bd88082d89ebdf7797b199f76df0 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Sat, 11 Jan 2025 09:55:36 +0100 Subject: [PATCH] Update prometheus-install.sh: Service creation fix (#1417) --- install/prometheus-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/prometheus-install.sh b/install/prometheus-install.sh index 294e9363..cbabb93a 100644 --- a/install/prometheus-install.sh +++ b/install/prometheus-install.sh @@ -33,7 +33,7 @@ msg_ok "Installed Prometheus" msg_info "Creating Service" cat </etc/systemd/system/prometheus.service -echo "[Unit] +[Unit] Description=Prometheus Wants=network-online.target After=network-online.target @@ -49,7 +49,7 @@ ExecStart=/usr/local/bin/prometheus \ ExecReload=/bin/kill -HUP \$MAINPID [Install] -WantedBy=multi-user.target" +WantedBy=multi-user.target EOF systemctl enable -q --now prometheus msg_ok "Created Service"