LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-03-2008, 02:41 AM   #1
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
Ntop not starting as a daemon? But starts normally as standalone??


Hi,

I'm experiancing problems with Ntop, I'm using a distribution called Clark Connect which is an RPM distro based on CentOS, however after trying to start Ntop as a Daemon I get this error:

Code:
# /etc/init.d/ntop -d start
Starting ntop:    Processing file /etc/ntop.conf for parameters...
Wed Oct  1 03:01:39 2008  NOTE: Interface merge enabled by default
Wed Oct  1 03:01:39 2008  Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options...
                                           ,     --user ntop, ,   --db-file-path /var/ntop, ,     ,     ,       --use-syslog, ,     ,       ,     ,         ,   ,

run ntop --help for usage information

    Common problems:
        -B "filter expressions" (quotes are required)
        --use-syslog=facilty (the = is required)

                                                           [FAILED]
I would like to be able to start it from startup so daemon would be best however if I start it normally or configure it to be a daemon and start it normally it works fine?

Of course with normal startup there isn't much to say but if started normally and is set to be used as daemon it will quite happily switch!

I'm wondering if there's something wrong with init.d script or rc.d??

I wonder if anyone has any experiance with this to help me?

Thanks
 
Old 10-04-2008, 12:35 AM   #2
smbell100
Member
 
Registered: Sep 2007
Location: Shetland, UK
Distribution: Slackware, Mandrake, LFS
Posts: 59

Rep: Reputation: 16
One possibility is that the init script for ntop is wrong - have a look at /etc/init.d/ntop and look for the start method. Apparently @/etc/ntop.conf needs to be the first arguement. See

http://www.opensubscriber.com/messag...t/9403350.html

Hope this helps
 
Old 10-04-2008, 03:27 AM   #3
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Thanks for that smbell100,

changing the old init.d script to:

Code:
daemon $prog @/etc/ntop.conf -d -L
was the answer!!

Many Thanks!
 
Old 08-26-2009, 01:55 PM   #4
diegot84
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Thumbs up ntop daemon

Quote:
Originally Posted by kayasaman View Post
Thanks for that smbell100,

changing the old init.d script to:

Code:
daemon $prog @/etc/ntop.conf -d -L
was the answer!!

Many Thanks!

Thank you very much, I've been looking for days, this is the only post that worked.

Thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DHCP client which starts initially as daemon and doesn't exit on failure 10110111 Linux - Networking 3 11-06-2008 02:51 PM
Starting an app when x starts Jongi Debian 4 07-26-2008 05:37 PM
Gnome Daemon Problem when Debian starts up kcpaige89 Debian 1 12-02-2006 10:44 PM
Starting a program whenever X starts cwwilson721 Slackware 7 04-02-2006 10:52 PM
using vsftpd through xinetd or as standalone daemon (performance) markus1982 Linux - Software 0 02-11-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration