fix --server not killed after service stop or uninstallation
This commit is contained in:
parent
115fb05c85
commit
2ff3b24b33
@ -6,7 +6,8 @@ After=systemd-user-sessions.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/rustdesk --service
|
ExecStart=/usr/bin/rustdesk --service
|
||||||
ExecStop=pkill -f "rustdesk --tray"
|
# kill --tray and --server both
|
||||||
|
ExecStop=pkill -f "rustdesk --"
|
||||||
PIDFile=/run/rustdesk.pid
|
PIDFile=/run/rustdesk.pid
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
TimeoutStopSec=30
|
TimeoutStopSec=30
|
||||||
|
Loading…
x
Reference in New Issue
Block a user