Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

Recommended Posts

[Unit]
Description=workerman守护进程

[Service]
WorkingDirectory=/var/workerman
ExecStart=php /var/workerman/start.php start -d
ExecRestart=php /var/workerman/start.php restart -d
ExecStop=php /var/workerman/start.php stop

# 程序崩溃后自动启动
Restart=on-failure
RestartSec=10s

# 用户角色
User=root
# The default value is 90 seconds for most distributions.
TimeoutStopSec=90
 
[Install]
WantedBy=multi-user.target

参考
1
https://blog.csdn.net/bian2021/article/details/123919062

2
http://www.jinbuguo.com/systemd/systemd.service.html

3
https://blog.csdn.net/lidahanga_/article/details/111672529

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

Link to post
Link to comment
Share on other sites

 Share

discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...