On Mon, Sep 08, 2003 at 09:34:06PM -0800, admin wrote:
> running:
> FreeBSD 4.8-STABLE
> 
> okay I am having a strange issue.
> 
> after the last reboot after my FreeBSD machine became unreachable - and
> required a power cycle.  mostly all processes listed in /usr/local/etc/rc.d
> did not start.  this only happens very rarely and has happens after FreeBSD
> crashed or is not brought down very cleanly.  can somebody recommend a way to
> auto run these scripts - and make sure these files get executed on boot up.

I am no script pro but something like this should do the job;

#!/bin/sh
if ! ps a | grep mysqld;
then
  /bin/sh /usr/local/etc/rc.d/mysql-server.sh start
fi
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to