[Snort-users] Starting Snort at Boot Up

Erek Adams erek at ...577...
Tue Aug 27 16:18:02 EDT 2002


On Mon, 26 Aug 2002, Hal Wigoda wrote:

> You have to create the following links to /etc/rc.d/snort
>
> /etc/rc.d/rc0.d/K20snortd
> /etc/rc.d/rc1.d/K20snortd
> /etc/rc.d/rc2.d/K20snortd
> /etc/rc.d/rc3.d/K20snortd
> /etc/rc.d/rc4.d/K20snortd
> /etc/rc.d/rc5.d/K20snortd

Hal,

	Err...  Not quite.  Those files only stop snort when the machine
changes run levels.  That has nothing to do with the error below:

>> snort: FATAL ERROR: database: mysql_error: Can't connect to local MySQL
>> server through socket '/var/run/mysql/mysql.sock' (2)

	Since it starts from a script that you can run by hand, but not on
bootup, it's either permissions, wrong user, a path problem, or a problem of
what shell you are running.  It's kinda the same type of error when a cronjob
won't cron, but will run just fine from the commandline.

	Cheers!

-----
Erek Adams
Nifty-Type-Guy
TheAdamsFamily.Net





More information about the Snort-users mailing list