Re: What User Runs Startup Scripts?

2006-01-12 Thread Drew Tomlinson

On 1/11/2006 10:18 PM Igor Robul said the following:


On Wed, Jan 11, 2006 at 08:44:54PM -0800, Drew Tomlinson wrote:
 


On 1/10/2006 7:09 AM Igor Robul said the following:
   


Do you have tun0 interface on boot time? Are you activating ppp
manually?


 

I do run openvpn and its start up script creates tun0 and tun1.  No 
ppp.  But the fatal error is Not root.  Why is ntop not root?
   

Does openvpn start before or after ntop? I _think_, that ntop when tries open 
network device and cant do this, it thinks that it is not running as

root.

Remove tun* interfaces from list of interfaces ntop is monitoring. If
problem persist then I'm wrong, if it will disappear, then you can try
reorder startup sequence, for example start openvpn before ntop.
 


You are right!  Starting openvpn before ntop resolves this issue.

Thanks,

Drew

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What User Runs Startup Scripts?

2006-01-10 Thread Igor Robul
On Thu, Jan 05, 2006 at 08:02:19PM -0800, Drew Tomlinson wrote:
 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...
Do you have tun0 interface on boot time? Are you activating ppp
manually?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


What User Runs Startup Scripts?

2006-01-05 Thread Drew Tomlinson
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 
[EMAIL PROTECTED]
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]:   ===


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]