Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410549 - net-analyzer/ntop init.d script looks for ntop data at a hardcoded location
Summary: net-analyzer/ntop init.d script looks for ntop data at a hardcoded location
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-04-02 13:15 UTC by Vincent de Phily
Modified: 2018-02-14 15:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Suggested changes to /etc/{conf,init}.d/ntop (configurable_ntop_data_dir.patch,1.50 KB, patch)
2012-04-02 13:19 UTC, Vincent de Phily
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent de Phily 2012-04-02 13:15:56 UTC
/etc/init.d/ntop checks for /var/lib/ntop/ntop_pw.db before starting. But it is often useful to have ntop data located elsewhere. It's even temptingly configurable in /etc/conf.d/ntop.

Reproducible: Always

Steps to Reproduce:
1. install and configure ntop
2. mv /var/lib/ntop /some/where/else/
3. $EDITOR /etc/conf.d/ntop to specify the new location
4. /etc/init.d/ntop restart
Actual Results:  
# /etc/init.d/ntop restart
 * You need to set a password first by running
 * ntop --set-admin-password
 * ERROR: ntop failed to start

Expected Results:  
# /etc/init.d/ntop restart
 * Stopping ntop ... [ ok ]
 * Starting ntop ... [ ok ]
Comment 1 Vincent de Phily 2012-04-02 13:19:29 UTC
Created attachment 307483 [details, diff]
Suggested changes to /etc/{conf,init}.d/ntop

This patch uses a $NTOP_DATA_DIR in /etc/conf.d/ntop
Comment 2 Pacho Ramos gentoo-dev 2018-02-14 15:47:01 UTC
removed from the tree