#!/sbin/sh # /etc/init.d/rc.local - to be linked into /etc/rc3.d as # S99rc.local -- a place to hang local startup stuff. # started after everything else when going multi-user. # ln -fs /etc/init.d/rc.local /etc/rc3.d/S99rc.local # In order to stop certain files loading, you can rename # them from S99blah to s99blah and Kblah to kblah # instead of putting exit at the top :) case "$1" in 'start') echo "Starting local services...\c" echo "Setting library paths" /usr/bin/crle -c /var/ld/ld.config -l /usr/lib:/usr/lib/secure:/usr/local/lib:/usr/local/ssl/lib echo "Loading prnpg (required for SunFreeware OpenSSH)" mkdir /var/spool/prngd 2>/dev/null /usr/local/bin/prngd /var/spool/prngd/pool echo "sshd.." if [ -x /opt/ssh/sbin/sshd ]; then /opt/ssh/sbin/sshd fi # if [ -x /usr/local/sbin/sshd ]; then # /usr/local/sbin/sshd # fi echo "exim.." if [ -x /opt/exim/start ]; then /opt/exim/start fi echo "" ;; 'stop') echo "$0: Not stopping any services." ;; *) echo "Usage: $0 { start | stop }" ;; esac