# 禁止开机启动
systemctl disable xxxx.service
# 开机启动
systemctl enable xxxx.service
# 查看状态
systemctl is-enabled xxxx.service
# 启动/停止
systemctl start/stop xxxx.service
使用 journalctl
查看日志,发现大量 oray_rundaemon
日志,经查,此日志为向日葵远程控制软件输出日志,此软件使用极少,但是会洗掉系统大量日志,于是考虑禁用此软件自启动。
经排查,软件通过 systemd
完成自启动,通过以下命令关闭自启动服务:
# 停止软件
sudo systemctl stop runsunloginclient.service
# 禁止开机自启动
sudo systemctl disable runsunloginclient.service
关闭之后,oray_rundaemon
日志停止输出。