[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: implicit linkage



On Sun, 12 Oct 2014 15:33:48 +0300
Andrei POPESCU <andreimpopescu@gmail.com> wrote:

> On Sb, 11 oct 14, 17:41:28, Steve Litt wrote:
> > On Sat, 11 Oct 2014 22:28:31 +0300
> > Andrei POPESCU <andreimpopescu@gmail.com> wrote:
> > 
> > 
> > > Really? How do you write an initscript that restarts your daemon 
> > > automatically in case it fails for some reason?
> > > 
> > > Also, imapfilter doesn't write a pidfile at all, so I'd need to
> > > make at least some modifications to the script.
> > 
> > Does imapfilter run in the foreground, or does it have an option to
> > run in the foreground?
> 
> In my configuration it runs in the foreground. It can be configured
> to detach from the terminal, but anything more complicated than that
> I'd have to script myself.

Because it can run in the foreground, it's a prime candidate for
daemontools (or one of the daemontools-inspired programs like nosh,
etc).

One more thing: In my belief system and priorities, I personally feel
more comfortable making /system and /command, using the djb installer,
rather than installing the Debian daemontools package. If creating two
new top level directories makes you uncomfortable, the Debian
daemontools package creates the service and command directories in
existing subdirectories. Last time I looked, the documentation for
Debian's daemontools package wasn't as good as the documentation for
raw djb daemontools, but that might have changed.

So if you don't like brand new top level directories, ignore my
suggestions of using djb's instructions exactly, and consider the
Debian package.

SteveT

Steve Litt                *  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Reply to: