diff --git a/worker/stacktach.sh b/worker/stacktach.sh index be51937..ccc87c8 100755 --- a/worker/stacktach.sh +++ b/worker/stacktach.sh @@ -5,11 +5,12 @@ DAEMON=/usr/bin/python ARGS=$WORKDIR/worker/start_workers.py PIDFILE=/var/run/stacktach.pid +export DJANGO_SETTINGS_MODULE="settings" + case "$1" in start) echo "Starting server" cd $WORKDIR - source etc/stacktach_config.sh /sbin/start-stop-daemon --start --pidfile $PIDFILE --make-pidfile -b --exec $DAEMON $ARGS ;; stop)