On 5/22/14 10:28 AM, wo...@4amlunch.net wrote:
On Saturday, April 10, 2010 11:52:41 PM UTC-4, Ben Finney wrote:
pid = daemon.pidlockfile.TimeoutPIDLockFile(
"/tmp/dizazzo-daemontest.pid", 10)
Has pidlockfile been removed? (1.6)
-brian
"Have you released the inertial dampener?
On 05/22/2014 07:31 AM, wo...@4amlunch.net wrote:
I know it's 4 years later, but I'm currently battling this myself. I do exactly
this and yet it doesn't appear to be keeping the filehandler open. Nothing ever
gets written to logs after I daemonize!
You didn't include any context (important a
On Thursday, May 22, 2014 10:31:11 AM UTC-4, wo...@4amlunch.net wrote:
> I know it's 4 years later, but I'm currently battling this myself. I do
> exactly this and yet it doesn't appear to be keeping the filehandler open.
> Nothing ever gets written to logs after I daemonize!
Ok, made it work, a
On Saturday, April 10, 2010 11:52:41 PM UTC-4, Ben Finney wrote:
> pid = daemon.pidlockfile.TimeoutPIDLockFile(
> "/tmp/dizazzo-daemontest.pid", 10)
Has pidlockfile been removed? (1.6)
-brian
--
https://mail.python.org/mailman/listinfo/python-list
I know it's 4 years later, but I'm currently battling this myself. I do exactly
this and yet it doesn't appear to be keeping the filehandler open. Nothing ever
gets written to logs after I daemonize!
--
https://mail.python.org/mailman/listinfo/python-list
Sean DiZazzo writes:
> I'm finally getting around to trying out the python-daemon module and
> have hit a wall. I'm trying to set up logging inside of the "with
> daemon.DaemonContext" block. But when I try to use a logger inside
> the block it throws an error:
Specifically, it's throwing an e
Rebelo writes:
> i found a crude workaround:
> i wrote a function in which i start logging after deamon starts
That seems rather sub-optimal; you'll be unable to use the logger for
anything before the daemon context opens. This kind of problem is
exactly what ‘DaemonContext.files_preserve’ is in
Vinay Sajip wrote:
On Apr 8, 1:58 pm, Rebelo wrote:
Vinay Sajip wrote:
On Apr 8, 1:28 pm, Rebelo 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 ge
i found a crude workaround:
i wrote a function in which i start logging after deamon starts
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 8, 1:58 pm, Rebelo wrote:
> Vinay Sajip wrote:
> > On Apr 8, 1:28 pm, Rebelo 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
Vinay Sajip wrote:
On Apr 8, 1:28 pm, Rebelo 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
On Apr 8, 1:28 pm, Rebelo 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 wro
On Apr 8, 1:28 pm, Rebelo 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 wro
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?
--
http://mail.python.org/mailman/listinfo
On Dec 10, 5:37 pm, Sean DiZazzo wrote:
> I'm finally getting around to trying out the python-daemon module and
> have hit a wall. I'm trying to set up logging inside of the "with
> daemon.DaemonContext" block. But when I try to use a logger inside
> the block it throws an error:
Got it! The D
15 matches
Mail list logo