On 0, Paul Schmehl <pauls@utdallas.edu> wrote:
> --On December 19, 2006 6:56:26 PM -0500 Nigel Houghton
> <nigel@sourcefire.com> wrote:
>
> >On 0, FRANCIS PROVENCHER <francis.provencher@msp.gouv.qc.ca> wrote:
> >>Hi all, im sorry to disturb you again.
> >>
> >>I have a problem when i reboot a freebsd box with snort.
> >>The problem is, that the snort instance go up before Mysql server.
> >>I have try to sleep the snort process for 15 seconde to let's Mysql go
> >>up before without success... (/usr/local/etc/rc.d/snort --> sleep 15)
> >>
> >>But i have this error, on /var/log/message
> >>: FATAL ERROR: database: mysql_error: Can't connect to local MySQL
> >>server through socket '/tmp/mysql.sock'
> >>
> >>Some on have an idea how to let's snort stand for Mysql instance ?
> >
> >Yes. Start the mysqld daemon first. Take a look in the FreeBSD
> >documentation on how to do that.
> >
> mysql *should* have installed (if you installed it from ports) with a
> startup script named 111.mysqld.sh in /usr/local/etc/rc.d/, which *should*
> make it startup first. If you compiled from source, your startup script
> simply needs to be named mysqld.sh so that it starts before snort.sh.
> Startup scripts are processed numerically and then alphabetically.
Take a look at rcorder, rc.subr and rc.
Also, might be worth making sure that MySQL is actually running and
using the socket /tmp/mysql.sock first though.
--
Nigel Houghton
Office Linebacker
SF VRT
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Snort-users mailing list
Snort-users@lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users
|