home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Magazine
/
wwwoffle-2.1.tar.gz
/
wwwoffle-2.1
/
contrib
/
redhat-init
< prev
next >
Wrap
Text File
|
1997-12-19
|
1KB
|
49 lines
#!/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 ===