Hi Rocky,
Thanks for the suggestion, unfortunately, still a no-go, I have noticed this, however, when I restart uwsgi:
Code:
# /etc/init.d/uwsgi-python2.6 restart
* Restarting WSGI server(s) uwsgi-python2.6
/etc/init.d/uwsgi-python2.6: 109: Bad substitution
/etc/init.d/uwsgi-python2.6: 109: Bad substitution
/etc/init.d/uwsgi-python2.6: 109: Bad substitution
Is this anything that I should be worrying about? related at all?
Anyway my
Code:
/etc/uwsgi/uwsgi-python2.6/baruwa.ini
now looks like this:
Code:
[uwsgi]
socket = /var/run/uwsgi/uwsgi-python2.6/baruwa/socket
master = true
processes = 2
env = DJANGO_SETTINGS_MODULE=baruwa.settings
module = django.core.handlers.wsgi:WSGIHandler()
pythonpath = /usr/share/pyshared/baruwa/
Oh regarding the above uwsgi-python error, my
Code:
/etc/init.d/uwsgi-python2.6
looks like this:
Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides: uwsgi-python2.6
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop uwsgi-python2.6 server instance(s)
### END INIT INFO
# Author: Leonid Borisenko <leo.borisenko@gmail.com>
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="WSGI server(s)" # Introduce a short description here
NAME="uwsgi-python2.6" # Introduce the short server's name here
DAEMON=/usr/bin/uwsgi-python2.6 # Introduce the server's location here
SCRIPTNAME=/etc/init.d/$NAME
CONFDIR=/etc/uwsgi/uwsgi-python2.6
RUNDIR=/var/run/uwsgi
UWSGI_RUNDIR=$RUNDIR/uwsgi-python2.6
LOGDIR=/var/log/uwsgi
UWSGI_LOGDIR=$LOGDIR/uwsgi-python2.6
LOG_FILENAME_SUFFIX=uwsgi-python2.6
# Exit if the package is not installed
[ -x $DAEMON ] || exit 0
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
# Define supplementary functions
. /usr/lib/uwsgi/init/snippets
. /usr/lib/uwsgi/init/do_command
WHAT=$1
shift
case "$WHAT" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
do_command "$WHAT" "$@"
RETVAL="$?"
[ "$VERBOSE" != no ] && log_end_msg "$RETVAL"
;;
stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_command "$WHAT" "$@"
RETVAL="$?"
[ "$VERBOSE" != no ] && log_end_msg "$RETVAL"
;;
status)
if [ -z "$1" ]; then
[ "$VERBOSE" != no ] && log_failure_msg "which one?"
else
status_of_proc -p $(find_specific_pidfile $1) "$DAEMON" "$NAME" \
&& exit 0 \
|| exit $?
fi
;;
reload)
[ "$VERBOSE" != no ] && log_daemon_msg "Reloading $DESC" "$NAME"
do_command "$WHAT" "$@"
RETVAL="$?"
[ "$VERBOSE" != no ] && log_end_msg "$RETVAL"
;;
force-reload)
[ "$VERBOSE" != no ] && log_daemon_msg "Forced reloading $DESC" "$NAME"
do_command "$WHAT" "$@"
RETVAL="$?"
[ "$VERBOSE" != no ] && log_end_msg "$RETVAL"
;;
restart)
[ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" "$NAME"
CURRENT_VERBOSE=$VERBOSE
VERBOSE=no
do_command stop "$@"
VERBOSE=$CURRENT_VERBOSE
case "$?" in
0)
do_command start "$@"
RETVAL="$?"
[ "$VERBOSE" != no ] && log_end_msg "$RETVAL"
;;
*)
# Failed to stop
[ "$VERBOSE" != no ] && log_end_msg 1
;;
esac
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload|force-reload}" >&2
exit 3
;;
esac
Thanks Muchly,
Drex
Recent comments
16 hours 36 min ago
21 hours 35 min ago
23 hours 1 min ago
23 hours 54 min ago
1 day 1 hour ago
1 day 6 hours ago
1 day 6 hours ago
1 day 9 hours ago
1 day 22 hours ago
1 day 23 hours ago