#!/bin/sh
#
#    Copyright (c) 1996-2003 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#    Initialization script to start/stop crond.
#

# Source common library
. /etc/init.d/functions

CROND=/usr/sbin/crond

case "$1" in

'start')
    $ECHO "Timed execution daemon:\c"

	if $CHECK crond; then
	    ${KILLALL} crond
	    if test -x $CROND; then
		$CROND
		$ECHO " crond\c"
	    fi
	fi

    $ECHO "."
    ;;

'stop')
    ${KILLALL} crond
    ;;    

*)
    echo "usage: $0 {start | stop}"
    ;;

esac

