#! /bin/sh
#
# cld          Start/Stop the cld Call Logging daemon.
#
# chkconfig: 2345 98 60
# description:	cld logs incomming caller ID to one file, and \
#		outgoing numbers to a second file.

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
	echo -n "Starting cld daemon: "
	daemon cld
	echo
	touch /var/lock/subsys/cld
	;;
  stop)
	echo -n "Stopping cron daemon: "
	killproc cld
	echo
	rm -f /var/lock/subsys/cld
	;;
  status)
	status cld
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: cld {start|stop|status|restart}"
	exit 1
esac

exit 0
