add systemd service
This commit is contained in:
		
							parent
							
								
									65c47b720b
								
							
						
					
					
						commit
						c027ec0c8e
					
				
							
								
								
									
										16
									
								
								finger-weather.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								finger-weather.service
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Finger Weather Forecast Service
 | 
				
			||||||
 | 
					Wants=network-online.target
 | 
				
			||||||
 | 
					After=network-online.target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					Type=simple
 | 
				
			||||||
 | 
					User=root
 | 
				
			||||||
 | 
					Group=root
 | 
				
			||||||
 | 
					Environment="WEATHER_API_KEY=<your key>"
 | 
				
			||||||
 | 
					SyslogIdentifier=finger-weather
 | 
				
			||||||
 | 
					ExecStart=/usr/local/bin/finger-weather
 | 
				
			||||||
 | 
					Restart=on-failure
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=multi-user.target
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user