Add zigbee2mqtt role and playbook
This commit is contained in:
		
					parent
					
						
							
								e084462ae1
							
						
					
				
			
			
				commit
				
					
						51fd3367db
					
				
			
		
					 13 changed files with 211 additions and 0 deletions
				
			
		
							
								
								
									
										18
									
								
								playbooks/roles/zigbee2mqtt/files/zigbee2mqtt.service
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								playbooks/roles/zigbee2mqtt/files/zigbee2mqtt.service
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| [Unit] | ||||
| Description=zigbee2mqtt | ||||
| After=network.target | ||||
| 
 | ||||
| [Service] | ||||
| Environment=ZIGBEE2MQTT_DATA=/home/zigbee2mqtt/zigbee2mqtt_data | ||||
| Environment=NODE_ENV=production | ||||
| ExecStart=/usr/bin/npm start | ||||
| WorkingDirectory=/opt/zigbee2mqtt | ||||
| StandardOutput=inherit | ||||
| # Or use StandardOutput=null if you don't want Zigbee2MQTT messages filling syslog, for more options see systemd.exec(5) | ||||
| StandardError=inherit | ||||
| Restart=always | ||||
| RestartSec=10s | ||||
| User=zigbee2mqtt | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue