Personally I use http://cr.yp.to/daemontools.html and it solved all
these problems for me quite nicely. No more pid files, no more
ownership problems, no more logging headaches. I think someone has a
HowTo on setting up daemontools with z2.py/stupid logger, but I
actually wrote my own logging mo
On Mon, Oct 07, 2002 at 07:39:05AM +0100, Toby Dickenson wrote:
> On Sunday 06 Oct 2002 4:56 pm, Chris McDonough wrote:
>
> > > It's probably unavoidable that the log file is opened as root --
> > > it's used to report "can't setuid()". :-)
>
> Thats what syslog is for.
Only issue with syslog i
On Sat, 5 Oct 2002, Guido van Rossum wrote:
> There's a different use case where something changes in the
> environment after the program has run successfully for a while, which
> causes it to crash and causes subsequent restarts to crash
> immediately. It is *possible* that the environment fixes
On Sat, 5 Oct 2002, Shane Hathaway wrote:
> I think it's because its syntax is out of order. :-) Whenever I'm about
> to write a "try...except...else" block, I really want to spell it
> "try...else...except". This places the exceptional situation after the
> common situation, where it should be.
On Monday 07 Oct 2002 1:47 pm, Guido van Rossum wrote:
> > > Well, there goes zLOG's MinimalLogger implementation.
> >
> > The module name might be 'MinimalLogger', but everywhere else it is
> > known as 'the stupid log'.
>
> And stupid it is. But it's the only one we've got in the Zope core. :-(
> > Well, there goes zLOG's MinimalLogger implementation.
>
> The module name might be 'MinimalLogger', but everywhere else it is
> known as 'the stupid log'.
And stupid it is. But it's the only one we've got in the Zope core. :-(
> > (This only holds for log files owned by a root, right?)
>
On Monday 07 Oct 2002 1:14 pm, Guido van Rossum wrote:
> Well, there goes zLOG's MinimalLogger implementation.
The module name might be 'MinimalLogger', but everywhere else it is known as
'the stupid log'.
> (This only holds for log files owned by a root, right?)
No, I dont think ownership i
[Guido]
> > > It's probably unavoidable that the log file is opened as root --
> > > it's used to report "can't setuid()". :-)
[Toby]
> Thats what syslog is for.
>
> It is good security practice that a daemon should *never* have a
> writeable file descriptor for its log file. If it does, and the