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

CHECK=/sbin/chkconfig
CROND=/usr/sbin/crond

if $CHECK verbose ; then
    ECHO='echo -e'
else
    ECHO=:
fi

case "$1" in

'start')
    $ECHO "crond daemon:\c"

	if $CHECK crond; then
	    /usr/bin/killall -q crond
	    if test -x $CROND; then
		$CROND
		$ECHO " crond\c"
	    fi
	fi

    $ECHO "."
    ;;

'stop')
    /usr/bin/killall -q crond
    ;;    

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

esac

