Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410549

Summary: net-analyzer/ntop init.d script looks for ntop data at a hardcoded location
Product: Gentoo Linux Reporter: Vincent de Phily <moltonel>
Component: [OLD] ServerAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Suggested changes to /etc/{conf,init}.d/ntop

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