Hello!

I use django on Debian Sarge and after a while (upgrade django to
Revision: 5007) init script not running. First problem was in
mysqldb-python library, it was update anhd now runserver starts well.
What it can be? Can attach strace output...

init script:
set -e

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Dialcom Services FastCGI daemon"
NAME=manage.py
DAEMON=/www/dial.com.ru/dialcom/$NAME
SCRIPTNAME=/etc/init.d/dialcom-fcgi
PIDFILE=/www/dial.com.ru/dialcom/dialcom-fcgi.pid

MINSPARE=5
MAXSPARE=10
MAXCHILDREN=100

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

#
#       Function that starts the daemon/service.
#
d_start() {
        start-stop-daemon --start --quiet -c dialcom --pidfile=$PIDFILE
\ --exec $DAEMON -- runfcgi host=127.0.0.1 port=8001 daemonize=true \
                pidfile=$PIDFILE \
                minspare=$MINSPARE maxspare=$MAXSPARE
maxchildren=$MAXCHILDREN \ method=prefork \
                || echo -n " already running"
}

#
#       Function that stops the daemon/service.
#
d_stop() {
        start-stop-daemon --stop --quiet -c dialcom --pidfile=$PIDFILE \
                || echo -n " not running"
}


-- 
Всего наилучшего! Григорий
greg [at] anastasia [dot] ru
Письмо отправлено: 2007/04/27 17:16

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to