Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > aa833577325fdad442d6d6081d7de905 > files > 3

wwwoffle-2.6d-1mdk.i586.rpm

#!/bin/sh
#
# chkconfig: 345 86 16
# description: The wwwoffle daemon acts as a proxy for the web
#
# Author[s]:
#	Marc Merlin	<marcsoft@magic.metawire.com>

. /etc/rc.d/init.d/functions

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

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

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

exit 0

# === End of File ===