fix --server not killed after service stop or uninstallation

This commit is contained in:
rustdesk 2024-05-03 00:36:29 +08:00
parent 115fb05c85
commit 2ff3b24b33

View File

@ -6,7 +6,8 @@ After=systemd-user-sessions.service
[Service]
Type=simple
ExecStart=/usr/bin/rustdesk --service
ExecStop=pkill -f "rustdesk --tray"
# kill --tray and --server both
ExecStop=pkill -f "rustdesk --"
PIDFile=/run/rustdesk.pid
KillMode=mixed
TimeoutStopSec=30