之前使用cockpit作开机自启动是手动修改/usr/lib/systemd/system/cockpit.service文件,其实是不规范的操作,配置自启动应该执行如下命令:
$ sudo systemctl enable cockpit.socket
Create symlink /etc/systemd/system/socket.target.wants/cockpit.socket -> /usr/lib/systemd/system/cockpit.socket
扩展:参看Linux服务小结
标签:cockpit,systemd,socket,system,Cockpit,usr,自启动,小结 From: https://blog.51cto.com/huanghai/9157199