Run python script as daemon at boot time (Ubuntu)

前端 未结 3 1882
你的背包
你的背包 2020-12-13 05:14

I\'ve created small web server using werkzeug and I\'m able to run it in usual python way with python my_server.py. Pages load, everything works fine. Now I wan

3条回答
  •  旧时难觅i
    2020-12-13 06:03

    If you have supervisor service that starts at boot, write a supervisor service is much, much simpler.

    You can even set autorestart if your program fails.

提交回复
热议问题