Tiago

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

 1 [Unit]
 2 Description=startup script test
 3 
 4 [Service]
 5 Type=simple
 6 ExecStart=/usr/local/bin/xxx/xxx.sh
7 Restart=always 8 # RestartSec=30 9 # TimeoutSec=30 10 11 [Install] 12 WantedBy=multi-user.target

#systemctl enable xxx.service

 

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

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-10
  • 2021-06-19
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
猜你喜欢
  • 2022-02-10
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-02-10
  • 2022-02-10
相关资源
相似解决方案