Kick Off Daemonized Service Using Djangos Manage.py Custom Command?
I got a custom command in my reusable django app which I want to kick off a daemonized service and then return, leaving the service running. I've implemented my service as a simple
Solution 1:
I have the beginnings of a library, django-initd
, to handle this: see the project on GitHub.
Django actually includes a utility for a process to daemonize itself, in django.utils.daemonize
, my library takes care of the startup/shutdown, logging, and interaction with the management command. I'd be interested to know if it's helpful for you.
Post a Comment for "Kick Off Daemonized Service Using Djangos Manage.py Custom Command?"