Comment 2 for bug 1215330

Revision history for this message
houstonbofh (leesharp) wrote :

It is somewhat ahrd to tell from the report, but this does NOT seem to be a dupe of https://bugs.launchpad.net/ubuntu/precise/+source/darkstat/+bug/902153 ubuntu 11.10 darkstat can`t start.

It dose seem to be a report of what I am experiencing.

After configuring /etc/darkstat/init.cfg darkstat still fails to start, and gives no error or reason why. No logs are generated. However, running purely from the command line works.

It appears that several variables defined /etc/darkstat/init.cfg are overridden after importing by /etc/init.d/darkstat causing it to fail. After commenting out those lines, everything works as expected. This is a quick and dirty fix, not a patch! :)

<partial list of /etc/init.d/darkstat>

PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON="/usr/sbin/darkstat"
NAME="darkstat"
DESC="darkstat network daemon"
INIT="/etc/darkstat/init.cfg"
HOMEDIR="/var/lib/darkstat"
PIDFILE="/var/run/$NAME.pid"
#DIR="/var/lib/darkstat"

test -f $DAEMON || exit 0

test -f $INIT || exit 0

#INTERFACE="-i br0"
#PORT="-p 665"
#BINDIP="-b 192.168.5.35"
#LOCAL=""
#DNS=""
#DAYLOG=""
DB="--import darkstat.db --export darkstat.db"
#FILTER=""