systemctl disable xxx 之后不起作用
时间: 2020-08-20来源:V2EX
前景提要
生产环境下, 一些 systemd 配置的服务不能开机自启动, 所以需要 disable 掉,但是问题是 disable 之后, systemctl is-enabled xxx, 结果还是 enable
1.文件在 /etc/systemd/system/xxx.service
2.文件权限正常(因为同权线的可以 disable)
3.disable 之后 /etc/systemd/system/multi-user.target.wants/里面的软链确实被删
4.systemctl cat xxx [Unit] Description=xxx service After=network.target [Service] Group=www User=www Type=simple Restart=always RestartSec=5 ExecStart=/home/www/bin/xxx WorkingDirectory=/home/www/bin [Install] WantedBy=multi-user.target Alias=xxx

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行