Do not use forking style, but run services in the foreground instead. Dispense with ExecStop, systemd will do that for us.
		
			
				
	
	
		
			12 lines
		
	
	
		
			250 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			250 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=xrdp daemon
 | 
						|
Requires=xrdp-sesman.service
 | 
						|
After=syslog.target network.target xrdp-sesman.service
 | 
						|
 | 
						|
[Service]
 | 
						|
EnvironmentFile=/etc/sysconfig/xrdp
 | 
						|
ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS --nodaemon
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target
 |