mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 14:59:02 +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
|
set -e
|
||||||
|
|
||||||
pkill -f "rustdesk --tray" || true
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
purge)
|
purge)
|
||||||
rm -rf /root/.config/rustdesk || true
|
rm -rf /root/.config/rustdesk || true
|
||||||
|
@ -43,6 +43,5 @@ pre_remove() {
|
|||||||
post_remove() {
|
post_remove() {
|
||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
pkill -f "rustdesk --tray" || true
|
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,6 @@ case "$1" in
|
|||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
rm /usr/bin/rustdesk || true
|
rm /usr/bin/rustdesk || true
|
||||||
pkill -f "rustdesk --tray" || true
|
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
@ -81,7 +81,6 @@ case "$1" in
|
|||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
rm /usr/bin/rustdesk || true
|
rm /usr/bin/rustdesk || true
|
||||||
pkill -f "rustdesk --tray" || true
|
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
@ -83,7 +83,6 @@ case "$1" in
|
|||||||
# for uninstall
|
# for uninstall
|
||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
pkill -f "rustdesk --tray" || true
|
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
@ -84,7 +84,6 @@ case "$1" in
|
|||||||
# for uninstall
|
# for uninstall
|
||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
pkill -f "rustdesk --tray" || true
|
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
@ -6,6 +6,7 @@ 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"
|
||||||
PIDFile=/run/rustdesk.pid
|
PIDFile=/run/rustdesk.pid
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
TimeoutStopSec=30
|
TimeoutStopSec=30
|
||||||
|
Loading…
Reference in New Issue
Block a user