example systemd service
This commit is contained in:
		
							parent
							
								
									967a4a99fc
								
							
						
					
					
						commit
						6cc9ec30f7
					
				
							
								
								
									
										17
									
								
								etc/holepunch.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								etc/holepunch.service
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
# https://www.digitalocean.com/community/tutorials/how-to-deploy-node-js-applications-using-systemd-and-nginx
 | 
			
		||||
# goes in /etc/systemd/system/holepunch.service
 | 
			
		||||
# systemctl enable holepunch
 | 
			
		||||
# systemctl start holepunch
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
ExecStart=/usr/local/bin/node /srv/holepunch/bin/service.js
 | 
			
		||||
Restart=always
 | 
			
		||||
StandardOutput=syslog
 | 
			
		||||
StandardError=syslog
 | 
			
		||||
SyslogIdentifier=node-holepunch
 | 
			
		||||
User=root
 | 
			
		||||
Group=root
 | 
			
		||||
Environment=NODE_ENV=production
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=multi-user.target
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user