Skip to content Skip to sidebar Skip to footer

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.

Solution 2:

Why do you want to start service as a separte process?

Run in a Thread, in the same process as runserver.

Post a Comment for "Kick Off Daemonized Service Using Djangos Manage.py Custom Command?"