From bedf04cd9f111bdeaa86fece37fd0d6030710559 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Wed, 24 May 2017 17:57:44 +0900 Subject: instfiles: substitute directories in systemd service files Do not expect prefix is always /usr. /usr/local is often used when users compile xrdp manually. --- instfiles/xrdp-sesman.service.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 instfiles/xrdp-sesman.service.in (limited to 'instfiles/xrdp-sesman.service.in') diff --git a/instfiles/xrdp-sesman.service.in b/instfiles/xrdp-sesman.service.in new file mode 100644 index 00000000..8f754d60 --- /dev/null +++ b/instfiles/xrdp-sesman.service.in @@ -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 -- cgit v1.2.1