Edy wrote:
Hi
I have googled and read on the man pages but something is missing here.
For example i have the following in my /etc/rc.local
if [ X"${mysql}" == X"YES" -a -x /usr/local/bin/safe_mysqld ]; then
echo -n ' mysqld'; /usr/local/share/mysql/mysql.server start
fi
if [ X"${snort}" == X"YES" -a -x /usr/local/bin/snort ]; then
echo -n ' snort'; /usr/local/bin/snort -D -d -i fxp0 -c
/etc/snort/snort.conf -u _snort -g _snort
fi
and in my /etc/rc.conf.local
mysql=YES
snort=YES
When the system rebooted, both processes are not started.
If i were to execute example echo -n ' mysqld';
/usr/local/share/mysql/mysql.server start from command line, mysql
started successfully.
Any clue?
I don't know about snort, but as far as MySQL is concern, why don't you
do it right.
http://www.openbsdsupport.org/mysql.htm#/etc/rc.local
Then adjust it for your snort needs.
Best,
Daniel