Re: Disabling anydesk autostart on sysvinit
Posted: Sun Oct 31, 2021 8:23 am
Update:
Disable / Enable anydesk startup
During installation with MX Package Installer some error/warning message show up,when installing anydesk.
The installation will proceed anyway
One reason for warnings is missing fix with the init-script provided.
Manually fix anydesk init script this way, to avoid further complains:
# fix anydesk init-script after installation
In order to avoid automatic starting of anydesk service:
Disable anydesk startup
* Disable startup of anydesk 'global' service
# SysV-init
# systemd
* Disable startup of anydesk 'local' service - disable autostart
In order to re-enable automatic starting of anydesk service:
Enable anydesk startup
* Enable startup of anydesk 'global' service
# SysV-init
# systemd
* Check anydesk startup service is enabled
# SysV-initanydesk 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# systemd
* Enable startup of anydesk 'local' service - enable autostart
HTH

Disable / Enable anydesk startup
During installation with MX Package Installer some error/warning message show up,when installing anydesk.
The installation will proceed anyway
One reason for warnings is missing fix with the init-script provided.
Manually fix anydesk init script this way, to avoid further complains:
# fix anydesk init-script after installation
Code: Select all
sudo sed -i '/^# Required-St/s:$dbus:dbus:' $(readlink -e /etc/init.d/anydesk)
Disable anydesk startup
* Disable startup of anydesk 'global' service
# SysV-init
Code: Select all
sudo update-rc.d -f anydesk remove
Code: Select all
sudo systemctl disable anydesk
Code: Select all
printf '[Desktop Entry]\nHidden=true\n' | tee ~/.config/autostart/anydesk_global_tray.desktop
Enable anydesk startup
* Enable startup of anydesk 'global' service
# SysV-init
Code: Select all
sudo update-rc.d anydesk defaults
Code: Select all
sudo systemctl enable anydesk
# SysV-init
Code: Select all
sudo sysv-rc-conf --list anydesk
# systemd
Code: Select all
sudo systemctl is-enabled anydesk
Code: Select all
rm ~/.config/autostart/anydesk_global_tray.desktop
