head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.07.07.22.09.35;	author dan;	state Exp;
branches;
next	1.1;

1.1
date	2001.07.03.16.26.16;	author dan;	state Exp;
branches;
next	;


desc
@/etc/init.d/swhoisd script
@


1.2
log
@Fix error in startup script
@
text
@#! /bin/sh
#
# /etc/init.d/swhoisd
# $Id: swhoisd,v 1.1 2001/07/03 16:26:16 dan Exp dan $
#
# chkconfig: - 60 20
# description: The whois protocol lets remote users query a directory of \
#              domains, IP addresses, and network administrators.
# processname: in.swhoisd

# Get config.
. /etc/sysconfig/network

# Get functions
. /etc/init.d/functions

# Check that networking is up.
if [ ${NETWORKING} = "no" ] ; then
	exit 0
fi

RETVAL=0

start() {
 	echo -n $"Starting whois services: "
	daemon in.swhoisd
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/whoisd
	return $RETVAL
}	

stop() {
	echo -n $"Stopping whois services: "
	killproc in.swhoisd
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/whoisd
	return $RETVAL
}	

restart() {
	stop
	start
}	

# See how we were called.
case "$1" in
 start)
 	start
	;;
 stop)
 	stop
	;;
 status)
 	status whoisd
	;;
 restart)
 	restart
	;;
 condrestart)
 	[ -f /var/lock/subsys/whoisd ] && restart || :
	;;
 *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 1
	;;
esac

exit $?
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
# $Id$
d26 1
a26 1
	daemon whoisd
d35 1
a35 1
	killproc whoisd
@
