instfiles: substitute directories in systemd service files
Do not expect prefix is always /usr. /usr/local is often used when users compile xrdp manually.master
parent
67aab0a706
commit
bedf04cd9f
@ -1,17 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=xrdp session manager
|
|
||||||
Documentation=man:xrdp-sesman(8) man:sesman.ini(5)
|
|
||||||
After=network.target
|
|
||||||
StopWhenUnneeded=true
|
|
||||||
BindsTo=xrdp.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/var/run/xrdp-sesman.pid
|
|
||||||
EnvironmentFile=-/etc/sysconfig/xrdp
|
|
||||||
EnvironmentFile=-/etc/default/xrdp
|
|
||||||
ExecStart=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS
|
|
||||||
ExecStop=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS --kill
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,17 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=xrdp session manager
|
||||||
|
Documentation=man:xrdp-sesman(8) man:sesman.ini(5)
|
||||||
|
After=network.target
|
||||||
|
StopWhenUnneeded=true
|
||||||
|
BindsTo=xrdp.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
PIDFile=@localstatedir@/run/xrdp-sesman.pid
|
||||||
|
EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
|
||||||
|
EnvironmentFile=-@sysconfdir@/default/xrdp
|
||||||
|
ExecStart=@sbindir@/xrdp-sesman $SESMAN_OPTIONS
|
||||||
|
ExecStop=@sbindir@/xrdp-sesman $SESMAN_OPTIONS --kill
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -1,16 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=xrdp daemon
|
|
||||||
Documentation=man:xrdp(8) man:xrdp.ini(5)
|
|
||||||
Requires=xrdp-sesman.service
|
|
||||||
After=network.target xrdp-sesman.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/var/run/xrdp.pid
|
|
||||||
EnvironmentFile=-/etc/sysconfig/xrdp
|
|
||||||
EnvironmentFile=-/etc/default/xrdp
|
|
||||||
ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS
|
|
||||||
ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=xrdp daemon
|
||||||
|
Documentation=man:xrdp(8) man:xrdp.ini(5)
|
||||||
|
Requires=xrdp-sesman.service
|
||||||
|
After=network.target xrdp-sesman.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
PIDFile=@localstatedir@/run/xrdp.pid
|
||||||
|
EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
|
||||||
|
EnvironmentFile=-@sysconfdir@/default/xrdp
|
||||||
|
ExecStart=@sbindir@/xrdp $XRDP_OPTIONS
|
||||||
|
ExecStop=@sbindir@/xrdp $XRDP_OPTIONS --kill
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue