Package: darkstat
Version: 3.0.719-1+b1
Severity: normal
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation? Darkstat never starts as daemon, wether on
boot, nor manually
* What exactly did you do (or not do) that was effective (or
ineffective)? "systemctl start darkstat" ('restart' too)
* What was the outcome of this action? In status: "systemd[1]: Started LSB:
start darkstat monitoring system at boot time."
* What outcome did you expect instead? The daemon should have been started.
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 9.5
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 4.17.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages darkstat depends on:
ii debconf [debconf-2.0] 1.5.61
ii libc6 2.24-11+deb9u3
ii libpcap0.8 1.8.1-3
ii lsb-base 9.20161125
ii zlib1g 1:1.2.8.dfsg-5
darkstat recommends no packages.
darkstat suggests no packages.
-- Configuration Files:
/etc/darkstat/init.cfg changed:
START_DARKSTAT="yes"
INTERFACE="-i ens18 -p "
DIR="/var/lib/darkstat"
PORT="-p 667"
BINDIP="-b 185.216.213.5"
LOCAL="-l 185.216.213.0/255.255.252.0"
DAYLOG="--daylog darkstat.log"
DNS="--no-dns"
OPTIONS="--syslog --no-macs"
/etc/init.d/darkstat changed:
set -e
. /lib/lsb/init-functions
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=""
PORT=""
BINDIP=""
LOCAL=""
DNS=""
DAYLOG=""
DB="--import darkstat.db --export darkstat.db"
FILTER=""
. $INIT
if [ "$START_DARKSTAT" = "no" ] ; then
log_warning_msg "please change the value of START_DARKSTAT in $INIT, in order
to start darkstat"
exit 0
fi
test "$START_DARKSTAT" = "yes" || exit 0
case "$1" in
start)
log_begin_msg "Starting $DESC : $NAME "
if start-stop-daemon --start --quiet -b --exec $DAEMON -- \
$INTERFACE \
$PORT \
--chroot $DIR \
--pidfile $PIDFILE \
$BINDIP \
$LOCAL \
$FIP \
$DNS \
$DAYLOG \
$DB \
$OPTIONS \
-f "$FILTER"; then
log_success_msg "done"
else
log_progress_msg "already running"
fi
log_end_msg 0
;;
stop)
log_begin_msg "Stopping $DESC : $NAME... "
if [ ! -f "$PIDFILE" ] ; then
log_progress_msg "not running"
else
if start-stop-daemon --quiet --oknodo --stop --name $NAME --pidfile
$PIDFILE --retry 30; then
rm -f $PIDFILE
log_success_msg "stopped"
else
log_progress_msg "not running"
fi
fi
log_end_msg 0
;;
restart | force-reload)
log_begin_msg "Restarting $DESC : $NAME "
if [ ! -f "$PIDFILE" ] ; then
log_progress_msg "not running "
else
if start-stop-daemon --stop --oknodo --name $NAME --pidfile $PIDFILE
--retry 30; then
rm -f $PIDFILE
else
log_progress_msg "$DESC : $NAME is not running"
rm -f $PIDFILE
fi
fi
sleep 1
start-stop-daemon --start --quiet -b --exec $DAEMON -- \
$INTERFACE \
$PORT \
--chroot $DIR \
--pidfile $PIDFILE \
$BINDIP \
$LOCAL \
$FIP \
$DNS \
$DAYLOG \
$DB \
$OPTIONS \
-f "$FILTER"
log_success_msg "done"
log_end_msg 0
;;
debug-run)
log_success_msg "$0: this option is not longer available."
log_success_msg "$0: please run darkstat with --no-daemon option"
log_success_msg "$0: for more info please check darkstat(8)."
;;
*)
N=/etc/init.d/$NAME
log_success_msg "Usage: $N {start|stop|restart|force-reload|debug-run}" >&2
exit 1
;;
esac
exit 0
-- debconf information:
darkstat/upgrade-question/db_purge-2.5-1: true