I have a python3 program that performs a long running service on a semi
embedded linux device. I've been in the prototyping stage. I just run it from
the command line and use print() statements to let me know the thing is making
acceptable process.
At some point, I need to properly daemonize
Travis Griggs travisgri...@gmail.com:
nohup python3 myMain.py 21 /var/log/mylog.log
I don't recommend this (ubiquitous) technique. You should keep your
daemon in the foreground until it has reserved and initialized all the
resources it needs and daemonize only then. That way the caller does
On Sat, Aug 23, 2014 at 5:27 AM, Travis Griggs travisgri...@gmail.com wrote:
I’m curious if there’s a technique one could use to get half way there.
Basically, with minimal modifications, I’d like to get it running at startup.
Okay, hold on a minute there. There are two quite separate things
On 22Aug2014 12:27, Travis Griggs travisgri...@gmail.com wrote:
I’m curious if there’s a technique one could use to get half way there.
Basically, with minimal modifications, I’d like to get it running at startup.
So I can put a line like this in rc.local
nohup python3 myMain.py 21