On Nov 21, 2014, at 1:15 PM, Lucas Brasilino <lr...@cin.ufpe.br> wrote:

> Hi!
> 
>> I was wondering if there is an easy way to run pox as a daemon. I remember
>> in nox there was a -d option.
>> Is there something similar for pox?
> 
> I really don't think so, but you can use the 'nohup' command, like:
> 
> $ nohup ./pox.py forwarding.l2_pairs > /tmp/pox.log 2>&1 &

Just a note that there's no reason to use ugly redirection to save the log to a 
file.  The log can be configured to go to a file or syslog from the commandline 
or a custom module.

Also relevant is that POX can be directed to write a pidfile.

But right, there's currently no daemon mode.  It shouldn't be *that* hard to 
add -- it's just never happened.  I think there was a proposal to add easy 
daemoning to Python 3.  I'm not sure if it ever happened, though, and I'm 
pretty sure it never got backported to 2.7.  Ah well.

-- Murphy

Reply via email to