Scripts in /etc/init.d. These start/stop daemons when machine starts/stops. :::::::::::: volmgt :::::::::::::: Manages floppy drives, CD roms, etc. #!/bin/sh # # Copyright (c) 1992, by Sun Microsystems, Inc. # #ident "@(#)volmgt 1.4 94/09/30 SMI" # Startup for Volume Management case "$1" in 'start') if [ -f /etc/vold.conf -a -f /usr/sbin/vold ] ; then echo "volume management starting." /usr/sbin/vold 1>/dev/console 2>&1 & fi ;; 'stop') PID=`/usr/bin/ps -e -u 0|/usr/bin/fgrep vold|/usr/bin/awk '{print $1}'` if [ ! -z "$PID" ] ; then /usr/bin/kill ${PID} 1>/dev/null 2>&1 fi ;; *) echo "Usage: /etc/init.d/volmgt { start | stop }" ;; esac exit 0 :::::::::::: cron ::::::::: Starts up processes at specified time ("batch") #ident "@(#)cron 1.8 93/07/27 SMI" /* SVr4.0 1.3.3.1 */ # cron control pid=`/usr/bin/ps -e|/usr/bin/grep cron|/usr/bin/sed -e 's/^ *//' -e 's/ .*//'` case $1 in 'start') if [ "${pid}" = "" ] then /usr/bin/rm -f /etc/cron.d/FIFO if [ -x /usr/bin/cron ] then /usr/bin/cron elif [ -x /usr/sbin/cron ] then /usr/sbin/cron fi fi ;; 'stop') if [ "${pid}" != "" ] then /usr/bin/kill ${pid} fi ;; *) echo "usage: /etc/init.d/cron {start|stop}" ;; esac