#! /bin/sh
#
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
    echo -n "Starting connlog daemon: "
    daemon connlog
    echo
    ;;
  stop)
    echo -n "Stopping connlog daemon: "
    ps auxw | awk '{ if ("perl /usr/sbin/connlog" == $11,$12) { print $2 } }'
    echo
    ;;
  *)
    echo "Usage: $0 {start|stop}"
    exit 1
esac

exit 0
