Update prometheus-install.sh: Service creation fix (#1417)

This commit is contained in:
Michel Roegl-Brunner
2025-01-11 09:55:36 +01:00
committed by GitHub
parent 0d8dcd5643
commit 1476d1b6c4

View File

@@ -33,7 +33,7 @@ msg_ok "Installed Prometheus"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/prometheus.service cat <<EOF >/etc/systemd/system/prometheus.service
echo "[Unit] [Unit]
Description=Prometheus Description=Prometheus
Wants=network-online.target Wants=network-online.target
After=network-online.target After=network-online.target
@@ -49,7 +49,7 @@ ExecStart=/usr/local/bin/prometheus \
ExecReload=/bin/kill -HUP \$MAINPID ExecReload=/bin/kill -HUP \$MAINPID
[Install] [Install]
WantedBy=multi-user.target" WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now prometheus systemctl enable -q --now prometheus
msg_ok "Created Service" msg_ok "Created Service"