Reputation: 987
How do I permanently remove cloud9, bonescript, gateone, etc., from the BeagleBone Black Debian (wheezy) distribution? I can disable them with these commands:
systemctl disable cloud9.service
systemctl disable gateone.service
systemctl disable bonescript.service
systemctl disable bonescript.socket
systemctl disable bonescript-autorun.service
systemctl disable avahi-daemon.service
systemctl disable gdm.service
systemctl disable mpd.service
And the disabling survives a reboot, but sometimes when I install a package, some systemd trigger will re-enable them. How can I permanently remove them?
Upvotes: 9
Views: 12272
Reputation: 1294
systemctl enable create a symlink to location /usr/lib/systemd/system and the disable will remove the symlink. This two command only affect the auto start behavior of the service on boot time.
So in real time, the service is still there but not auto started if some other service require this service it will get started on request.
To disable the service use mask option
systemctl mask cloud9.service
systemctl mask gateone.service
systemctl mask bonescript.service
systemctl mask bonescript.socket
systemctl mask bonescript-autorun.service
systemctl mask avahi-daemon.service
systemctl mask gdm.service
systemctl mask mpd.service
Upvotes: 0
Reputation: 31
As the Cloud9 IDE is built on node (which I did not need) I got rid av the whole shebang using:
sudo apt-get remove nodejs
sudo apt-get autoremove
Upvotes: 1
Reputation: 1
Try it:
in your terminal, type
ls /lib/systemd/system
if your service files are there, just delete them.
Upvotes: -2