Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 410549
Collapse All | Expand All

(-)/root/.emacs.d/backups/!etc!init.d!ntop.~1~ (-2 / +6 lines)
Lines 7-13 Link Here
7
}
7
}
8
8
9
checkconfig() {
9
checkconfig() {
10
	if [ ! -e /var/lib/ntop/ntop_pw.db ]; then
10
	if [ ! -d $NTOP_DATA_DIR ]; then
11
	        mkdir -p $NTOP_DATA_DIR
12
                chown ntop.root $NTOP_DATA_DIR
13
	fi
14
	if [ ! -e $NTOP_DATA_DIR/ntop_pw.db ]; then
11
		eerror "You need to set a password first by running"
15
		eerror "You need to set a password first by running"
12
		eerror "ntop --set-admin-password"
16
		eerror "ntop --set-admin-password"
13
		return 1
17
		return 1
Lines 19-25 Link Here
19
	ebegin "Starting ntop"
23
	ebegin "Starting ntop"
20
	export LC_ALL=C # apparently doesn't work with some locales (#191576 and #205382)
24
	export LC_ALL=C # apparently doesn't work with some locales (#191576 and #205382)
21
	export GDFONTPATH=/usr/share/fonts/corefonts # apparently the only font that works (#231705)
25
	export GDFONTPATH=/usr/share/fonts/corefonts # apparently the only font that works (#231705)
22
	start-stop-daemon --start --exec /usr/bin/ntop -- -d -L ${NTOP_OPTS}
26
	start-stop-daemon --start --exec /usr/bin/ntop -- -d -L -u ntop -P $NTOP_DATA_DIR ${NTOP_OPTS}
23
	eend $?
27
	eend $?
24
}
28
}
25
29
(-)/root/.emacs.d/backups/!etc!conf.d!ntop.~1~ (-2 / +4 lines)
Lines 1-9 Link Here
1
# Config file for /etc/init.d/ntop
1
# Config file for /etc/init.d/ntop
2
2
3
NTOP_DATA_DIR=/var/lib/ntop
4
3
# Set preferred options here
5
# Set preferred options here
4
#NTOP_OPTS="--http-server 3000 --https-server 0 --interface eth0"
6
#NTOP_OPTS="--http-server 3000 --https-server 0 --interface eth0"
5
7
6
# suggestions from bug #136983 (use it in case you experience ntop hangs)
8
# suggestions from bug #136983 (use it in case you experience ntop hangs)
7
#NTOP_OPTS="u ntop -P /var/lib/ntop --disable-schedyield --http-server 3000 --https-server 3001"
9
#NTOP_OPTS="--disable-schedyield --http-server 3000 --https-server 3001"
8
10
9
NTOP_OPTS="-u ntop -P /var/lib/ntop"
11
NTOP_OPTS=""

Return to bug 410549