Re: [go-nuts] Architect a daemon program

2016-10-12 Thread Nick Craig-Wood
On 11/10/16 18:09, Tong Sun wrote: > I've searched the mlist archive and have learned that I should > avoid daemonize as much as possible. So instead of label my program as a > daemon (or singleton or anything), let me describe what I need to do. > > I need the program (say, named as`myprog`) to

Re: [go-nuts] Architect a daemon program

2016-10-11 Thread Peter Mogensen
On 2016-10-11 19:09, Tong Sun wrote: I need the program (say, named as`myprog`) to fork into the background (if possible) with the "start" command-line option. What's important is that when `myprog` is called with other command-line options, it will /communicate with the running background proc

[go-nuts] Architect a daemon program

2016-10-11 Thread Tong Sun
I've searched the mlist archive and have learned that I should avoid daemonize as much as possible. So instead of label my program as a daemon (or singleton or anything), let me describe what I need to do. I need the program (say, named as`myprog`) to fork into the background (if possible) wit