redhat-init
上传用户:seven77cht
上传日期:2007-01-04
资源大小:486k
文件大小:1k
- #!/bin/sh
- # chkconfig: 2345 85 20
- # description: WWW proxy allowing offline view of cached pages
- # =============================================================================
- #
- # Description:
- # This shell script takes care of starting and stopping wwwoffled.
- #
- # Author[s]:
- # Gianpaolo Macario gianpi@geocities.com
- # Peter Stamfest Peter.Stamfest@vws.or.at
- #
- # Revision History:
- # 11-NOV-1998 peter Added chkconfig support, restart and status
- # options, changed usage message (stripped the
- # ".init")
- # 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: "
- daemon /usr/local/sbin/wwwoffled -c /etc/wwwoffle.conf
- echo
- ;;
- stop)
- # Stop daemons.
- echo -n "Shutting down wwwoffled: "
- killproc wwwoffled
- echo "done"
- ;;
- restart)
- echo -n "Restarting wwwoffled: "
- killproc wwwoffled -HUP
- echo
- ;;
- status)
- status wwwoffled
- ;;
- *)
- echo "Usage: wwwoffle {start|stop|restart|status}"
- exit 1
- esac
- exit 0
- # === End of File ===