#!/bin/sh
#
# skeleton      Example file to build /etc/init.d scripts.
#
# Version:      @(#) /etc/init.d/rc.d/perdition  27-May-1999
#
# Author:       Horms <horms@vergenet.net>
#
# Adapted from: Tomasz Koczko, <kloczek@rudy.mif.pg.gda.pl>
#               Michele Marziani <marziani@fe.infn.it>
#
# perdition:
# chkconfig: 2345 81 29
# description: Perdition is a POP# proxy designed to \
# enable users to contact a content free pop server that \
# will direct them to a real pop server on a per user basis\
# processname: perdition

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

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

exit 0

