Run Django app as a service / startup script

569 views
Skip to first unread message

Josir

unread,
Sep 27, 2007, 7:59:09 AM9/27/07
to Django developers
I'd like to run a Python / Django program as a init.d startup script.
The script line is:

python manage.py runserver 192.168.0.2:8181

The problem: when it runs it spits out messages to the console and it
stops the boot process until I type Ctrl C.

Is there any command or hack to simply run it in background without
asking for user to type Ctrl-C to stop it ?

1. I know that there are way to integrate python with apache (http://
www.djangoproject.com/documentation/modpython/ ) but I don't want to
install apache on that machine.

You can say: it will became slow... And I will answer: the application
will have just two users that will enter ocasionally. That' why I
choose python/django, I don't want to install tomcats, tomdogs, etc.

2. I tried also to use it in background (using &) but it still asks
for Ctrl-C...

Any comments or suggestion are welcome!
Even if you have to say: you have no choice - you have to install
apache...

Thanks in advance,
Josir Gomes
Rio de Janeiro - Brasil

Mads Sülau Jørgensen

unread,
Sep 27, 2007, 8:35:15 AM9/27/07
to django-d...@googlegroups.com
On 27/09/2007, at 13.59, Josir wrote:

> Any comments or suggestion are welcome!
> Even if you have to say: you have no choice - you have to install
> apache...

Please do not post general help questions to the django-developers
mailing list; this list is only for discussion of Django's code. For
general help, please post questions to the django-users mailing list:

http://groups.google.com/group/django-users/

(reply stolen from James Bennett).

--
Mads Sülau Jørgensen
ma...@sulau.dk

Reply all
Reply to author
Forward
0 new messages