Skip to content

Commit 424d510

Browse files
committed
ensure rustdesk service is not running
1 parent 7f5229b commit 424d510

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

res/DEBIAN/postinst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ "$1" = configure ]; then
66

77
INITSYS=$(ls -al /proc/1/exe | awk -F' ' '{print $NF}' | awk -F'/' '{print $NF}')
88
ln -f -s /usr/share/rustdesk/rustdesk /usr/bin/rustdesk
9-
9+
1010
if [ "systemd" == "$INITSYS" ]; then
1111

1212
if [ -e /etc/systemd/system/rustdesk.service ]; then
@@ -23,7 +23,9 @@ if [ "$1" = configure ]; then
2323
sed -i "s|pkill|/usr/bin/pkill|g" /usr/lib/systemd/system/rustdesk.service
2424
fi
2525
systemctl daemon-reload
26-
systemctl enable rustdesk
27-
systemctl start rustdesk
26+
27+
# ensure rustdesk service is NOT running on startup
28+
systemctl disable rustdesk
29+
systemctl stop rustdesk
2830
fi
2931
fi

0 commit comments

Comments
 (0)