[thelist] Shell script goes crazy and kills server
Christopher Ditty
CDitty at email.usps.gov
Fri Aug 11 08:04:52 CDT 2000
Any shell guru's out there? I have a very small shell script that pings my DB
and if it is not up, it starts it. It runs fine when run from a telnet prompt,
however, when run via cron, it crashes the db server then the next time it runs,
it restarts it.
Anyone see anything with this?
result=`mysqladmin ping`
echo $result
if [ "$result" != "mysqld is alive" ]
then
cd ~
./etc/mysql_restart
fi
Thanks
CDitty
More information about the thelist
mailing list