daemon.DaemonContext

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu Apr 8 14:45:04 CEST 2010


On Apr 8, 1:28 pm, Rebelo <puntabl... at gmail.com> wrote:
> when i use this :
>  context = daemon.DaemonContext(stdin=sys.stdin, stdout=sys.stdout,
> files_preserve=[fh], signal_map = {signal.SIGTERM:
> 'terminate',signal.SIGHUP: 'terminate'})
>
> i don't get error but i still can't write to log file
> what am i doing wrong?

Not sure, offhand.

Change to a script which just writes to the file (rather than going
via logging) - does that work? What platform are you on, what version
etc?

It's unlikely to be a logging-related problem: more likely it's to do
with file descriptors.

Regards,

Vinay Sajip



More information about the Python-list mailing list