#!/bin/sh
# =============================================================================
# File:	//twin.macario.org/etc/rc.d/init.d/wwwoffle.init
#
# Description:
#	This shell script takes care of starting and stopping wwwoffled.
#
# Author[s]:
#	Gianpaolo Macario	gianpi@geocities.com
#
# Revision History:
#	21-JUL-1997	gianpi	Configured for wwwoffle-1.2c
#	10-MAR-1997	gianpi	Initial writing
# =============================================================================

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

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/local/sbin/wwwoffled ] || exit 0

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting wwwoffled: "
        /usr/local/sbin/wwwoffled -c /etc/wwwoffle.conf
        echo
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down wwwoffled: "
	killproc wwwoffled
        echo "done"
        ;;
  *)
        echo "Usage: wwwoffle.init {start|stop}"
        exit 1
esac

exit 0

# === End of File ===
