What User Runs Startup Scripts?

Drew Tomlinson drew at mykitchentable.net
Thu Jan 5 20:02:23 PST 2006


I'm trying to figure out why the ntop.sh startup script that is 
installed from ports fails to start ntop successfully at boot up but 
works fine when I call it after boot up from root login.  I've included 
the complete console output.  The actual "FATAL ERROR" is "Not root, 
ntop shutting down...".  OK, why isn't ntop root?  I thought startup 
scripts were called as "root"?  Suggestions?

Thanks,

Drew

--- BEGIN ---
Starting ntop.
Jan  5 19:51:30 blacksheep ntop[611]:   THREADMGMT[t134615040]: ntop 
RUNSTATE: PREINIT(1)
Jan  5 19:51:30 blacksheep ntop[611]:   THREADMGMT[t134615040]: ntop 
RUNSTATE: INIT(2)
   Processing file /usr/local/etc/ntop/config for parameters...
Thu Jan  5 19:51:30 2006  NOTE: Interface merge enabled by default
Thu Jan  5 19:51:31 2006  Initializing gdbm databases
WARNING: --use-syslog=unknown log facility(''), using default value
Jan  5 19:51:31 blacksheep ntop[611]:   ntop v.3.2 SourceForge .tgz
Jan  5 19:51:31 blacksheep ntop[611]:   Configured on Dec 20 2005 
16:01:25, built on Dec 20 2005 16:05:54.
Jan  5 19:51:31 blacksheep ntop[611]:   Copyright 1998-2005 by Luca Deri 
<deri at ntop.org>
Jan  5 19:51:31 blacksheep ntop[611]:   Get the freshest ntop from 
http://www.ntop.org/
Jan  5 19:51:31 blacksheep ntop[611]:   NOTE: ntop is running from 
'/usr/local/bin'
Jan  5 19:51:31 blacksheep ntop[611]:   NOTE: (but see warning on man 
page for the --instance parameter)
Jan  5 19:51:31 blacksheep ntop[611]:   NOTE: ntop libraries are in 
'/usr/local/lib'
Jan  5 19:51:31 blacksheep ntop[611]:   Initializing ntop
Jan  5 19:51:31 blacksheep ntop[611]:   Checking dc0 for additional devices
Jan  5 19:51:31 blacksheep ntop[611]:   Resetting traffic statistics for 
device dc0
Jan  5 19:51:31 blacksheep ntop[611]:   DLT: Device 0 [dc0] is 1, mtu 
1514, header 14
Jan  5 19:51:31 blacksheep ntop[611]:   Checking dc1 for additional devices
Jan  5 19:51:31 blacksheep ntop[611]:   Resetting traffic statistics for 
device dc1
Jan  5 19:51:31 blacksheep ntop[611]:   DLT: Device 1 [dc1] is 1, mtu 
1514, header 14
Jan  5 19:51:31 blacksheep ntop[611]:   Checking rl0 for additional devices
Jan  5 19:51:31 blacksheep ntop[611]:   Resetting traffic statistics for 
device rl0
Jan  5 19:51:31 blacksheep ntop[611]:   DLT: Device 2 [rl0] is 1, mtu 
1514, header 14
Jan  5 19:51:31 blacksheep ntop[611]:   **ERROR** pcap_open_live(): 
'BIOCSETIF: tun0: Device not configured'
Jan  5 19:51:31 blacksheep ntop[611]:   Please correct the problem or 
select a different interface using the -i flag
Jan  5 19:51:31 blacksheep ntop[611]:   **FATAL_ERROR** Not root, ntop 
shutting down...
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP[t134615040]: ntop caught 
signal 2
Jan  5 19:51:31 blacksheep ntop[611]:   THREADMGMT[t134615040]: ntop 
RUNSTATE: SHUTDOWN(7)
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP[t134615040] catching 
thread is MAIN
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Running threads
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Locking purge mutex 
(may block for a little while)
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Locked purge mutex, 
continuing shutdown
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Continues
Jan  5 19:51:31 blacksheep ntop[611]:   FREE_HOST: Start, 1 device(s)
Jan  5 19:51:31 blacksheep ntop[611]:   FREE_HOST: End, freed 0
Jan  5 19:51:31 blacksheep ntop[611]:   FREE_HOST: Start, 1 device(s)
Jan  5 19:51:31 blacksheep ntop[611]:   FREE_HOST: End, freed 0
Jan  5 19:51:31 blacksheep ntop[611]:   FREE_HOST: Start, 1 device(s)
Jan  5 19:51:31 blacksheep ntop[611]:   FREE_HOST: End, freed 0
Jan  5 19:51:31 blacksheep ntop[611]:   FREE_HOST: Start, 1 device(s)
Jan  5 19:51:31 blacksheep ntop[611]:   FREE_HOST: End, freed 0
Jan  5 19:51:31 blacksheep ntop[611]:   PLUGIN_TERM: Unloading plugins 
(if any)
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Freeing device dc0 (idx=0)
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Freeing device dc1 (idx=1)
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Freeing device rl0 (idx=2)
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Freeing device tun0 (idx=3)
Jan  5 19:51:31 blacksheep ntop[611]:   CLEANUP: Clean up complete
Jan  5 19:51:31 blacksheep ntop[611]:   THREADMGMT[t134615040]: ntop 
RUNSTATE: TERM(8)
Jan  5 19:51:31 blacksheep ntop[611]:   ===================================
Jan  5 19:51:31 blacksheep ntop[611]:           ntop is shutdown...        
Jan  5 19:51:31 blacksheep ntop[611]:   ===================================



More information about the freebsd-questions mailing list