move pkill tray to execstop of the service for linux

This commit is contained in:
rustdesk
2024-04-01 17:07:10 +08:00
parent 26a7f9dd46
commit 57510980ed
7 changed files with 1 additions and 7 deletions

View File

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