# Start Mysql
if [ -x /usr/local/mysql/bin/safe_mysqld ]; then
/usr/local/mysql/bin/safe_mysqld > /dev/null & echo -n ' mysql'
fi
# Start Apache
if [ -x /usr/local/www/bin/apachectl ]; then
/usr/local/www/bin/apachectl startssl > /dev/null & echo -n ' Apache'
fi
# Start PureSecure
if [ -x /usr/local/puresecure/sensor/bin/psd ]; then
/usr/local/puresecure/sensor/bin/psd > /dev/null & echo -n ' PSD'
fi
1: Start
if
2: Comment
# Start PureSecure
3: If the process isn't running ( your looking for whats listed in " ps -aux" ) then
4: Run the the commant to start it and label it
/usr/local/puresecure/sensor/bin/psd > /dev/null & echo -n ' PSD'
5: End
fi
Good luck
Goater
Added:
cat or rc.local
Code:
bash-2.05b# cat rc.local
# $OpenBSD: rc.local,v 1.33 2001/06/05 23:01:55 naddy Exp $
# site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel
# site-specific startup actions, daemons which can be run
# Add your local changes additions to this file
echo -n 'starting local daemons:'
# run ntpdate prior to ntpd
if [ $securelevel -le 1 -a X"${ntpdate_flags}" != X"NO" \
-a -x /usr/local/sbin/ntpdate ]; then
echo -n ' ntpdate'
/usr/local/sbin/ntpdate -b ${ntpdate_flags} >/dev/null
fi
if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/ntpd \
-a -e /etc/ntp.conf ]; then
echo -n ' ntpd'; /usr/local/sbin/ntpd -p /var/run/ntpd.pid
fi
if [ -x /usr/local/sbin/cfsd ]; then
if ps auxc | grep -q '^ *root .* mountd$'; then
echo -n ' cfsd'; /usr/local/sbin/cfsd >/dev/null 2>&1
mount -o port=3049,nfsv2,intr localhost:/null /crypt
else
echo -n ' cfsd (failed, no mountd running)'
fi
fi
# Start Mysql
if [ -x /usr/local/mysql/bin/safe_mysqld ]; then
/usr/local/mysql/bin/safe_mysqld > /dev/null & echo -n ' mysql'
fi
# Start Apache
if [ -x /usr/local/www/bin/apachectl ]; then
/usr/local/www/bin/apachectl startssl > /dev/null & echo -n ' Apache'
fi
# Start PureSecure
if [ -x /usr/local/puresecure/sensor/bin/psd ]; then
/usr/local/puresecure/sensor/bin/psd > /dev/null & echo -n ' PSD'
fi
#if [ -x /usr/local/sbin/snmpd ]; then
# echo -n ' snmpd'; /usr/local/sbin/snmpd
#fi
echo '.'
# Netatalk stuff
#if [ -f /etc/netatalk/rc.atalk ]; then
# . /etc/netatalk/rc.atalk
#fi