Re: [PEPr] Proposal for System::Daemon
| From: | Kevin van Zonneveld | Date: | Wed, 30 Apr 2008 11:33:26 +0000 |
| Subject: | Re: [PEPr] Proposal for System::Daemon | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-49944@lists.php.net to get a copy of this message | ||
Thank you for taking an interest Dmitri.
On Wed, Apr 30, 2008 at 3:19 AM, Dmitri <email12@sharedlog.com> wrote:
> Kevin van Zonneveld wrote:
> > Kevin van Zonneveld (http://pear.php.net/user/kvz) proposes
> System::Daemon.
> > You can find more detailed information here:
> > http://pear.php.net/pepr/pepr-proposal-show.php?id=553
> >
> Isn't this proposal very similar to Net_Server
> http://pear.php.net/package/Net_Server ?
>
> I mean you can already do logging fron Net_Server instance. I actually used
> Net_Server once to write an email filter for Postfix
> and it works well - it's up for almost six months now without a restart.
I could be wrong but I believe Net_Server
- requires you to open an port, not all daemons want to do that
- and includes a lot of 'socket-oriented' code
- gives you limited control over the 'daemonization' (sighandlers, etc)
- provides limited OS integration (logging, generating startup files)
These are all points that System_Daemon will focus on. There isn't a
lot of shared code or logic between the two packages and this is
mostly because the focus of System_Daemon lays on the daemon itself,
and not specifically building network servers. It basically should
allow you to build any kind of application on top of it's foundation.
--
Kevin van Zonneveld
Work | http://www.true.nl/
About | http://kevin.vanzonneveld.net/