summaryrefslogtreecommitdiffstats
path: root/instfiles/xrdp-sesman.service
diff options
context:
space:
mode:
authorItamar Reis Peixoto <itamar@ispbrasil.com.br>2012-05-26 14:15:45 -0300
committerItamar Reis Peixoto <itamar@ispbrasil.com.br>2012-05-26 14:15:45 -0300
commita3d63eb5e01ceffc1e600031df2c63b7b91fdd0d (patch)
tree44477ba328237b99d071fc5939fc355a1aa6ff0d /instfiles/xrdp-sesman.service
parent7fa4f936e43577c3529b10610ccf7ddcb2bd9fbe (diff)
downloadxrdp-proprietary-a3d63eb5e01ceffc1e600031df2c63b7b91fdd0d.tar.gz
xrdp-proprietary-a3d63eb5e01ceffc1e600031df2c63b7b91fdd0d.zip
add systemd support into xrdp
Diffstat (limited to 'instfiles/xrdp-sesman.service')
-rw-r--r--instfiles/xrdp-sesman.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/instfiles/xrdp-sesman.service b/instfiles/xrdp-sesman.service
new file mode 100644
index 00000000..d40150cd
--- /dev/null
+++ b/instfiles/xrdp-sesman.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=xrdp session manager
+After=syslog.target network.target
+StopWhenUnneeded=true
+
+[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
+
+[Install]
+WantedBy=multi-user.target