21 lines
		
	
	
		
			468 B
		
	
	
	
		
			Desktop File
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			468 B
		
	
	
	
		
			Desktop File
		
	
	
	
| [Unit]
 | |
| Description=Bind uart socket with pseudo tty based on socat 
 | |
| Requires=um-service-config.service user-module.target
 | |
| After=um-service-config.service user-module.target
 | |
| ConditionPathExists=/etc/user-module/network.conf
 | |
| 
 | |
| [Service]
 | |
| Type=simple
 | |
| ExecStart=/usr/bin/socat-socket-uart
 | |
| PIDFile=/run/socket-uart.pid
 | |
| 
 | |
| 
 | |
| EnvironmentFile=/etc/user-module/network.conf
 | |
| 
 | |
| ExecReload=/bin/kill -HUP $MAINPID
 | |
| Restart=on-failure
 | |
| RestartSec=10
 | |
| 
 | |
| [Install]
 | |
| WantedBy=user-module.target
 |