FreeBSD 4.8 local startup issues

David Banning david at skytracker.ca
Tue Sep 9 01:03:06 PDT 2003


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


More information about the freebsd-questions mailing list