improve systemd unit files

This commit is contained in:
Itamar Reis Peixoto 2015-07-15 14:23:39 -03:00
parent 99b433a130
commit 26780d7fea
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
Description=xrdp session manager
After=syslog.target network.target
StopWhenUnneeded=true
BindTo=xrdp.service
[Service]
Type=forking

View File

@ -7,7 +7,7 @@ After=syslog.target network.target xrdp-sesman.service
Type=forking
PIDFile=/var/run/xrdp.pid
EnvironmentFile=/etc/sysconfig/xrdp
ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS
ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS --nodaemon
ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill
[Install]