Simplify interaction with systemd
This commit is contained in:
parent
4b37e1a508
commit
e199dba32f
@ -6,13 +6,11 @@ StopWhenUnneeded=true
|
|||||||
BindsTo=xrdp.service
|
BindsTo=xrdp.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
PIDFile=@localstatedir@/run/xrdp-sesman.pid
|
|
||||||
EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
|
EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
|
||||||
EnvironmentFile=-@sysconfdir@/default/xrdp
|
EnvironmentFile=-@sysconfdir@/default/xrdp
|
||||||
ExecStart=@sbindir@/xrdp-sesman $SESMAN_OPTIONS
|
ExecStart=@sbindir@/xrdp-sesman $SESMAN_OPTIONS --nodaemon
|
||||||
ExecStop=@sbindir@/xrdp-sesman $SESMAN_OPTIONS --kill
|
ExecReload=kill -HUP $MAINPID
|
||||||
ExecReload=@sbindir@/xrdp-sesman $SESMAN_OPTIONS --reload
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -5,12 +5,10 @@ Requires=xrdp-sesman.service
|
|||||||
After=network.target xrdp-sesman.service
|
After=network.target xrdp-sesman.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
PIDFile=@localstatedir@/run/xrdp.pid
|
|
||||||
EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
|
EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
|
||||||
EnvironmentFile=-@sysconfdir@/default/xrdp
|
EnvironmentFile=-@sysconfdir@/default/xrdp
|
||||||
ExecStart=@sbindir@/xrdp $XRDP_OPTIONS
|
ExecStart=@sbindir@/xrdp $XRDP_OPTIONS --nodaemon
|
||||||
ExecStop=@sbindir@/xrdp $XRDP_OPTIONS --kill
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user