summaryrefslogtreecommitdiffstats
path: root/instfiles/xrdp-sesman.service.in
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2017-05-24 17:57:44 +0900
committermetalefty <meta@vmeta.jp>2017-05-31 16:27:23 +0900
commitbedf04cd9f111bdeaa86fece37fd0d6030710559 (patch)
tree58e08502023177de1b9f28a50372369ff6cf53ac /instfiles/xrdp-sesman.service.in
parent67aab0a706727dd53dd639b586854b7c7f3d8262 (diff)
downloadxrdp-proprietary-bedf04cd9f111bdeaa86fece37fd0d6030710559.tar.gz
xrdp-proprietary-bedf04cd9f111bdeaa86fece37fd0d6030710559.zip
instfiles: substitute directories in systemd service files
Do not expect prefix is always /usr. /usr/local is often used when users compile xrdp manually.
Diffstat (limited to 'instfiles/xrdp-sesman.service.in')
-rw-r--r--instfiles/xrdp-sesman.service.in17
1 files changed, 17 insertions, 0 deletions
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