#!/bin/sh # # /etc/rc.d/rc.local: Local system initialization script. # # Put any local startup commands in here. Also, if you have # anything that needs to be run at shutdown time you can # make an /etc/rc.d/rc.local_shutdown script and put those # commands in there. # get basic watchdog timer for watchdog (in turn for the vmware web service) # script in /usr/bin/vmware-watchdog modprobe softdog sleep 10 # Start the watchdog timer deamon if [ -x /etc/rc.d/rc.watchdog ]; then /etc/rc.d/rc.watchdog start fi sleep 10 /etc/rc.d/init.d/vmware restart sleep 10 # might as well monitor the drives raid. - test on reboot! /sbin/mdadm --monitor --scan --oneshot --test --program /root/smtpmail.py # real thing test /sbin/mdadm --monitor --scan --daemonise --delay 120 --program /root/smtpmail.py sleep 10 # now start webmin #/etc/webmin/start >/dev/null 2>&1