diff options
author | Koichiro IWAO <meta@vmeta.jp> | 2017-05-24 17:57:44 +0900 |
---|---|---|
committer | metalefty <meta@vmeta.jp> | 2017-05-31 16:27:23 +0900 |
commit | bedf04cd9f111bdeaa86fece37fd0d6030710559 (patch) | |
tree | 58e08502023177de1b9f28a50372369ff6cf53ac /instfiles/xrdp-sesman.service.in | |
parent | 67aab0a706727dd53dd639b586854b7c7f3d8262 (diff) | |
download | xrdp-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.in | 17 |
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 |