mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update prometheus-install.sh: Service creation fix (#1417)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user