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.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.service.in')
-rw-r--r-- | instfiles/xrdp.service.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/instfiles/xrdp.service.in b/instfiles/xrdp.service.in new file mode 100644 index 00000000..576c1c25 --- /dev/null +++ b/instfiles/xrdp.service.in @@ -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 |