>
> Looks like the async_wrapper always changes its directory to / while
> daemenoising:
>
Is there a way to override this through some options?
def daemonize_self():
# daemonizing code:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012
try:
pid = os.fork()
if pid > 0:
# exit first parent
sys.exit(0)
except OSError, e:
print >>sys.stderr, "fork #1 failed: %d (%s)" % (e.errno,
e.strerror)
sys.exit(1)
# decouple from parent environment
os.chdir("/")
os.setsid()
os.umask(022)
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/cb0c19a1-baaf-42f6-a323-844d6c43fad2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.