Package: pads
Version: 1.2-11
Severity: normal

Dear Maintainer,

in /etc/pads/pads.conf the configuration says "daemon", 0 = Disable, 1 = Enable
but in /etc/default/pads the daemon mode is hardwired as a command-line
option (-D).

It'd be nice to have a way to disable pads from running at all from the
/etc/default/pads. For the time being, I just added an exit 0 to the init
script.

To summarize:

* The documentation is wrong (that's a bug)
* It'd be nice to disable pads from /etc/default/pads (that's a wishlist
  item)

Thanks for mantaining PADS.

P.


-- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-rc7-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pads depends on:
ii  libc6       2.13-38
ii  libpcap0.8  1.3.0-1
ii  libpcre3    1:8.30-5
ii  lsb-base    4.1+Debian8+deb7u1

pads recommends no packages.

pads suggests no packages.

-- Configuration Files:
/etc/init.d/pads changed:
set -e
.. /lib/lsb/init-functions
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Passive Asset Detection System"
NAME=pads
DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
exit 0
test -x $DAEMON || exit 0
OPTS="-D -c /etc/pads/pads.conf"
if [ -r /etc/default/$NAME ]
then
        . /etc/default/$NAME
fi
running() {
    if [ -f "$PIDFILE" ] && \
       [ "x`pidof -s $NAME`" = "x`cat $PIDFILE 2> /dev/null`" ]
    then
        return 0
    fi
    return 1
}
d_start() {
        start-stop-daemon --start --quiet --pidfile $PIDFILE \
                --exec $DAEMON -- $OPTS > /dev/null
}
d_stop() {
        start-stop-daemon --stop --quiet --pidfile $PIDFILE \
                --name $NAME
}
d_reload() {
        start-stop-daemon --stop --quiet --pidfile $PIDFILE \
                --name $NAME --signal 1
}
case "$1" in
  start)
    log_daemon_msg "Starting $DESC" "$NAME"
    if running ; then
        log_progress_msg "(already running)"
        log_end_msg 0
        exit 0
    fi
    if d_start ; then
        log_end_msg $?
    else
        log_end_msg $?
    fi
        ;;
  stop)
    log_daemon_msg "Stopping $DESC" "$NAME"
    if ! running; then
        log_progress_msg "not running"
        log_end_msg 0
        exit 0
    fi
    if d_stop ; then
        log_end_msg $?
    else
        log_end_msg $?
        exit 0
    fi
        ;;
  status)
    log_daemon_msg "Checking status of $DESC" "$NAME"
    if running ; then
        log_progress_msg "running"
        log_end_msg $?
    else
        log_progress_msg "not running"
        log_end_msg $?
    fi
    ;;
  restart|reload|force-reload)
    $0 stop
    sleep 1
    $0 start
        ;;
  *)
        echo "Usage: $SCRIPTNAME 
{start|stop|status|restart|reload|force-reload}" >&2
        exit 1
        ;;
esac
exit 0


-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to