daemon.DaemonContext

Rebelo puntabluda at gmail.com
Thu Apr 8 08:58:02 EDT 2010


Vinay Sajip wrote:
> 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?
> 
> My guess is - files_preserve needs to be passed a file handle and not
> a logging handler.
> 
> Regards,
> 
> Vinay Sajip

thnx for help.
writing to a file works, but i need logging.
do you know where can i find good documnetation for python-daemon?



More information about the Python-list mailing list