CentOS 7 systemd service开机启动设定

#vi /etc/systemd/system/xxx.service

 [Unit]
Description=startup script test [Service]
Type=simple
ExecStart=/usr/local/bin/xxx/xxx.sh
Restart=always
# RestartSec=
# TimeoutSec= [Install]
WantedBy=multi-user.target

#systemctl enable xxx.service

参考:http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html

上一篇:是时候学习python了


下一篇:UOJ#77. A+B Problem [可持久化线段树优化建边 最小割]