hi
i have to make th following script an init one
# !/bin/bash
if -e /tmp/mysql.pipe]; then
while -e /tmp/mysql.pipe]
do
mysql -u root --password='syslog' syslog < /tmp/mysql.pipe
done
else
mkfifo /tmp/mysql.pipe
fi
i found this solution
Creating Custom init Scripts
were this part made me crasy
# Check for missing binaries
BAR_BIN=/usr/bin/bar
test -x $BAR_BIN || { echo "$BAR_BIN not installed";
if "$1" = "stop" ]; then exit 0;
else exit 5; fi; }
# Check for existence of needed config file and read it
BAR_CONFIG=/etc/bar.cfg
test -r $BAR_CONFIG || { echo "$BAR_CONFIG not existing";
if "$1" = "stop" ]; then exit 0;
else exit 6; fi; }
# Read config
. $BAR_CONFIG
I don’t know what to put in the config and the bin file ???
The only thing i know is that the config file will allow me to change the database name the root password and so one
please i realy need help in this issue
thanks