+ app: add '--pidfile FILE' command-line parameter

This commit is contained in:
Simon Zolin
2019-04-05 12:19:28 +03:00
parent 08bedacf0a
commit 7746a3e6a9
2 changed files with 32 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ func (p *program) Start(s service.Service) error {
func (p *program) Stop(s service.Service) error {
// Stop should not block. Return with a few seconds.
cleanup()
cleanupAlways()
os.Exit(0)
return nil
}