Re: [PATCH] daemonization support for master

2001-12-04 Thread Simon Loader
Henrique de Moraes Holschuh wrote: > > On Tue, 04 Dec 2001, Simon Loader wrote: > > /usr/cyrus/bin/master & > > echo $! > /var/run/cyrus.pid > > > > which sort gives the same control. > > Well, it depends. The pidfile support inside master allows it to fork() at > will and still

Re: [PATCH] daemonization support for master

2001-12-04 Thread Henrique de Moraes Holschuh
On Tue, 04 Dec 2001, Simon Loader wrote: > /usr/cyrus/bin/master & > echo $! > /var/run/cyrus.pid > > which sort gives the same control. Well, it depends. The pidfile support inside master allows it to fork() at will and still keep the pidfile current. This way, we can setsid() wi

Re: [PATCH] daemonization support for master

2001-12-04 Thread Henrique de Moraes Holschuh
This one is a bit more complete. Requires PID support, and start-stop-daemon (i.e. it is for Debian, and I do not know if it is portable to other places; you can always get our start-stop-daemon, everything in Debian is free software). You'll likely want to change DAEMON to master (we use cyrmas

Re: [PATCH] daemonization support for master

2001-12-04 Thread Simon Loader
Henrique de Moraes Holschuh wrote: > > This patch should be applied on top of the previous one in this thread (in > message <20011128123038.K13192@khazad-dum>). > > It adds configure support for --enable-pidfile (which enables pidfile and > daemon mode). The full filename (with path info) for th

Re: [PATCH] daemonization support for master

2001-12-03 Thread Jeremy Howard
Henrique de Moraes Holschuh wrote: > This patch should be applied on top of the previous one in this thread (in > message <20011128123038.K13192@khazad-dum>). > > It adds configure support for --enable-pidfile (which enables pidfile and > daemon mode). The full filename (with path info) for the pi