Package: darkstat
Version: 3.0.713-1
Severity: wishlist
Tags: patch
Could /etc/darkstat/init.cfg and /etc/init.d/darkstat to be modified to permit
give additional parameters to darkstat commandline?
Please take a look next patch
Thanks
PD: Sorry for my english
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-4-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -u -r etc.orig/darkstat/init.cfg etc/darkstat/init.cfg
--- etc.orig/darkstat/init.cfg 2010-05-13 18:07:58.000000000 +0200
+++ etc/darkstat/init.cfg 2010-05-13 18:16:18.000000000 +0200
@@ -11,3 +11,5 @@
#BINDIP="-b 127.0.0.1"
#LOCAL="-l 192.168.0.0/255.255.255.0"
#DNS="--no-dns" Don't reverse reolve IPs to host names
+
+OPTIONS="$BINDIP $LOCAL $DNS"
diff -u -r etc.orig/init.d/darkstat etc/init.d/darkstat
--- etc.orig/init.d/darkstat 2010-05-13 18:08:49.000000000 +0200
+++ etc/init.d/darkstat 2010-05-13 18:16:03.000000000 +0200
@@ -30,9 +30,7 @@
INTERFACE=""
PORT=""
-BINDIP=""
-LOCAL=""
-DNS=""
+OPTIONS=""
DB="--import darkstat.db --export darkstat.db"
. $INIT
@@ -52,10 +50,7 @@
$PORT \
--chroot $DIR \
--pidfile $PIDFILE \
- $BINDIP \
- $LOCAL \
- $FIP \
- $DNS \
+ $OPTIONS \
$DB; then
log_success_msg "done"
else