mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08:00
move pkill tray to execstop of the service for linux
This commit is contained in:
parent
26a7f9dd46
commit
57510980ed
@ -2,8 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
pkill -f "rustdesk --tray" || true
|
||||
|
||||
case $1 in
|
||||
purge)
|
||||
rm -rf /root/.config/rustdesk || true
|
||||
|
@ -43,6 +43,5 @@ pre_remove() {
|
||||
post_remove() {
|
||||
rm /usr/share/applications/rustdesk.desktop || true
|
||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||
pkill -f "rustdesk --tray" || true
|
||||
update-desktop-database
|
||||
}
|
||||
|
@ -81,7 +81,6 @@ case "$1" in
|
||||
rm /usr/share/applications/rustdesk.desktop || true
|
||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||
rm /usr/bin/rustdesk || true
|
||||
pkill -f "rustdesk --tray" || true
|
||||
update-desktop-database
|
||||
;;
|
||||
1)
|
||||
|
@ -81,7 +81,6 @@ case "$1" in
|
||||
rm /usr/share/applications/rustdesk.desktop || true
|
||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||
rm /usr/bin/rustdesk || true
|
||||
pkill -f "rustdesk --tray" || true
|
||||
update-desktop-database
|
||||
;;
|
||||
1)
|
||||
|
@ -83,7 +83,6 @@ case "$1" in
|
||||
# for uninstall
|
||||
rm /usr/share/applications/rustdesk.desktop || true
|
||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||
pkill -f "rustdesk --tray" || true
|
||||
update-desktop-database
|
||||
;;
|
||||
1)
|
||||
|
@ -84,7 +84,6 @@ case "$1" in
|
||||
# for uninstall
|
||||
rm /usr/share/applications/rustdesk.desktop || true
|
||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||
pkill -f "rustdesk --tray" || true
|
||||
update-desktop-database
|
||||
;;
|
||||
1)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user