mirror of
				https://gitlab.crans.org/mediatek/med.git
				synced 2025-11-04 09:02:15 +01:00 
			
		
		
		
	Systemd service file
This commit is contained in:
		
				
					committed by
					
						
						club-med
					
				
			
			
				
	
			
			
			
						parent
						
							52af84b146
						
					
				
				
					commit
					47292feab2
				
			
							
								
								
									
										20
									
								
								django-med.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								django-med.service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
# Copy to ~/.config/systemd/user/django-med.service then
 | 
			
		||||
# systemctl --user daemon-reload
 | 
			
		||||
# systemctl --user start django-med.service
 | 
			
		||||
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Mediatek Django project
 | 
			
		||||
After=syslog.target
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
User=club-med
 | 
			
		||||
WorkingDirectory=/home/c/club-med/django-med
 | 
			
		||||
ExecStart=/home/c/club-med/django-med/entrypoint.sh
 | 
			
		||||
Restart=on-failure
 | 
			
		||||
KillSignal=SIGQUIT
 | 
			
		||||
Type=notify
 | 
			
		||||
StandardError=syslog
 | 
			
		||||
NotifyAccess=all
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=multi-user.target
 | 
			
		||||
		Reference in New Issue
	
	Block a user