永久删除 Beaglebone Black 服务 [英] Remove Beaglebone Black services permanently

查看:20
本文介绍了永久删除 Beaglebone Black 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从 BeagleBone Black Debian (wheezy) 发行版中永久删除 cloud9、bonescript、gateone 等?我可以使用以下命令禁用它们:

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

并且禁用在重新启动后仍然存在,但有时当我安装软件包时,某些 systemd 触发器会重新启用它们.如何永久删除它们?

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?

推荐答案

systemctl enable 创建指向位置/usr/lib/systemd/system 的符号链接,disable 将删除符号链接.这两个命令只影响启动时服务的自动启动行为.

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.

要禁用该服务,请使用 ma​​sk 选项

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

这篇关于永久删除 Beaglebone Black 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆