#!/bin/sh
#
# skeleton      Example file to build /etc/init.d scripts.
#
# Version:      @(#) /etc/init.d/cucipop  20-Nov-1998
#
# Author:       Horms <horms@zipworld.com.au>
#
# Adapted from: Tomasz Koczko, <kloczek@rudy.mif.pg.gda.pl>
#               Michele Marziani <marziani@fe.infn.it>
#
# cucipop:
# chkconfig: 2345 81 29
# description: Cubic Circle's POP3 daemon has support for just about \
# everything including APOP, UIDL, flexible authenication mechanisms \
# including hooks for RADIUS and shadow. It can also be used as a \
# standalone daemon for heavy POP traffic systems. It's fast and it's \
# small. Please read the README for registration information. This one \
# has Shadowsupport by default.
# processname: cucipop

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

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

exit 0

