mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-25 01:13:40 +00:00
Update prometheus-install.sh: Service creation fix (#1417)
This commit is contained in:
parent
0d8dcd5643
commit
1476d1b6c4
@ -33,7 +33,7 @@ msg_ok "Installed Prometheus"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/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"
|
||||
|
Loading…
Reference in New Issue
Block a user