目标
使用systemd实现开机启动某项服务
参考
How To Use Systemctl to Manage Systemd Services and Units | DigitalOcean
systemctl常用命令
启动或停止服务
systemctl start demo-start.service
systemctl stop demo-start.service
开启/关闭 开机自启动服务
systemctl enable demo-start.service
systemctl disable demo-start.service
重新加载服务
systemctl daemon-reload
查看服务状态
systemctl status demo-start.service
查看现有的service
ll /usr/lib/systemd/system/***.service
cd /etc/systemd/system/multi-user.target.wants/