Bind xrdp-sesman.service to xrdp.service, so that restarts work.
Do not use forking style, but run services in the foreground instead. Dispense with ExecStop, systemd will do that for us.
This commit is contained in:
parent
98bd694da3
commit
49d439fe31
@ -2,13 +2,11 @@
|
||||
Description=xrdp session manager
|
||||
After=syslog.target network.target
|
||||
StopWhenUnneeded=true
|
||||
BindTo=xrdp.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/xrdp-sesman.pid
|
||||
EnvironmentFile=/etc/sysconfig/xrdp
|
||||
ExecStart=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS
|
||||
ExecStop=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS --kill
|
||||
ExecStart=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS --nodaemon
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -4,11 +4,8 @@ Requires=xrdp-sesman.service
|
||||
After=syslog.target network.target xrdp-sesman.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/xrdp.pid
|
||||
EnvironmentFile=/etc/sysconfig/xrdp
|
||||
ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS
|
||||
ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill
|
||||
ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS --nodaemon
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user