Package: ntop
Version: 3:3.3-11+b2
Severity: wishlist
Tags: patch
With this patch, setting startup=0 in /etc/default/ntop will prevent ntop from
starting.
Setting it to startup=1 will enable it again.
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ntop depends on:
ii adduser3.110 add and remove users and groups
ii debconf [debconf-2.0] 1.5.24Debian configuration management sy
ii libc6 2.7-18GNU C Library: Shared libraries
ii libcairo2 1.6.4-7 The Cairo 2D vector graphics libra
ii libfontconfig1 2.6.0-3 generic font configuration library
ii libfreetype6 2.3.7-2+lenny1FreeType 2 font engine, shared lib
ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime
ii libglib2.0-0 2.16.6-1+lenny1 The GLib library of C routines
ii libpango1.0-0 1.20.5-3+lenny1 Layout and rendering of internatio
ii libpcap0.8 0.9.8-5 system interface for user-level pa
ii libpixman-1-0 0.10.0-2 pixel-manipulation library for X a
ii libpng12-0 1.2.27-2+lenny2 PNG library - runtime
ii librrd41.3.1-4 Time-series data storage and displ
ii libssl0.9.80.9.8g-15+lenny1 SSL shared libraries
ii libx11-6 2:1.1.5-2 X11 client-side library
ii libxcb-render-util00.2.1+git1-1 utility libraries for X C Binding
ii libxcb-render0 1.1-1.1 X C Binding, render extension
ii libxcb11.1-1.1 X C Binding
ii libxml22.6.32.dfsg-5 GNOME XML library
ii libxrender11:0.9.4-2 X Rendering Extension client libra
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
ntop recommends no packages.
Versions of packages ntop suggests:
ii graphviz 2.20.2-3 rich set of graph drawing tools
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-3 Fonts for the Ghostscript interpre
-- debconf information excluded
--- /etc/init.d/ntop~ 2009-06-01 08:41:21.0 +0200
+++ /etc/init.d/ntop2009-06-01 08:39:25.0 +0200
@@ -20,9 +20,18 @@
test -f $DAEMON || exit 0
-test -f $INIT || exit 0
-
-. $INIT
+if [ -f $INIT ]
+then
+. $INIT
+if [ $startup != 1 ]
+then
+ if [ $1 != stop ]
+ then
+ echo ntop has been disabled in /etc/default/ntop.
+ exit 0
+ fi
+fi
+fi
sanity_check() {
# Sanity check, we expect USER And INTERFACES to be defined