Skip to content

Commit

Permalink
Merge pull request #2672 from iskunk/new-2
Browse files Browse the repository at this point in the history
Simplify interaction with systemd
  • Loading branch information
matt335672 authored May 17, 2023
2 parents 24d1158 + e199dba commit 2fa92be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions instfiles/xrdp-sesman.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ StopWhenUnneeded=true
BindsTo=xrdp.service

[Service]
Type=forking
PIDFile=@localstatedir@/run/xrdp-sesman.pid
Type=exec
EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
EnvironmentFile=-@sysconfdir@/default/xrdp
ExecStart=@sbindir@/xrdp-sesman $SESMAN_OPTIONS
ExecStop=@sbindir@/xrdp-sesman $SESMAN_OPTIONS --kill
ExecReload=@sbindir@/xrdp-sesman $SESMAN_OPTIONS --reload
ExecStart=@sbindir@/xrdp-sesman $SESMAN_OPTIONS --nodaemon
ExecReload=kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
6 changes: 2 additions & 4 deletions instfiles/xrdp.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ Requires=xrdp-sesman.service
After=network.target xrdp-sesman.service

[Service]
Type=forking
PIDFile=@localstatedir@/run/xrdp.pid
Type=exec
EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
EnvironmentFile=-@sysconfdir@/default/xrdp
ExecStart=@sbindir@/xrdp $XRDP_OPTIONS
ExecStop=@sbindir@/xrdp $XRDP_OPTIONS --kill
ExecStart=@sbindir@/xrdp $XRDP_OPTIONS --nodaemon

[Install]
WantedBy=multi-user.target

0 comments on commit 2fa92be

Please sign in to comment.