github.com/kurioapp/go-servd (go): Package servd provides standard API for service like daemon.  Standard way to run:  Standard way to stop:  Standard way to wait for service to be shutdown gracefully:  What we need is to implement servd.Handler. For shortcut we can use servd.HandleFunc. Servd will pass cancellable context.Context, listen to the ctx.Done() channel as shutdown signal.
Keywords: golang