[freeside-devel] [PATCH] run freeside-queued in fg

Ricardo SIGNES rjbs+freeside-devel at icgroup.com
Tue Jul 12 09:40:54 PDT 2005


* ivan <ivan at 420.am> [2005-07-12T05:17:32]
> On Wed, Jun 15, 2005 at 04:32:34PM -0400, Ricardo SIGNES wrote:
> > This simple patch gives freeside-queued a -F option to run in the
> > foreground.  This makes it trivial to run freeside-queued under (for
> > example) djb's daemontools.

> hmm, i'm not sure.  :/
> 
> (if freeside-queued is dying unexpectedly please report it as a bug)

It's not a question of unexpected death, it's just that djb's excellent
daemontools package (which monitors services and keeps them running) works on
processes that run in the foreground.  Many modern daemons can be run in the
foreground, sometimes expressly to support daemontools.  Since I use
daemontools to monitor all my services (Apache, Postgres, etc) I'd like to be
able to use it for Freeside, too.  This patch just makes that possible by
providing a "don't fork, run in fg" option.  (The existing forking seems to be
strictly for the purposes of daemonization, which daemontools handles nicely
for you.)

-- 
rjbs


More information about the freeside-devel mailing list