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 |
|