How do I get my Golang web server to run in the background?

前端 未结 5 975
我在风中等你
我在风中等你 2020-12-22 22:29

I have recently completed the Wiki web development tutorial (http://golang.org/doc/articles/wiki/). I had tons of fun and I would like to experiment more with the n

5条回答
  •  遥遥无期
    2020-12-22 23:31

    Ubuntu? Use upstart.

    Create a file in /etc/init for your job, named your-service-name.conf

    start on net-device-up
    exec /path/to/file --option
    

    You can use start your-service-name, as well as: stop, restart, status

提交回复
热议问题