How to run Go forever in producction something like pm2 for nodejs?


(Ken Bassford) #21

Constructing daemons to run in the background is fairly simple in Golang, though care should be taken with multi-threaded daemons. Follow the instructions for you init system for starting at boot. And most important, handle any and all errors gracefully. Good luck.