cd /tmp
wget
http://projects.arin.net/rwhois/ftp/rwhoisd-1.5.9.5.tar.gz apt-get install gcc make
tar xvfz rwhoisd-1.5.9.5.tar.gz
cd rwhoisd-1.5.9.5
./configure
make
make install
init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: rwhoisd
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
### END INIT INFO
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=rwhoisd
DAEMON=/usr/local/rwhoisd/sbin/$NAME
CONFIG=/usr/local/rwhoisd/etc/rwhoisd/$NAME.conf
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
test -x $DAEMON || exit 0
d_start()
d_stop()
d_reload()
start-stop-daemon -stop -quiet \
-name $NAME -signal 1
case “$1″ in
start)
echo -n “Starting $DESC: $NAME”
d_start
echo “.”
;;
stop)
echo -n “Stopping $DESC: $NAME”
d_stop
echo “.”
;;
restart|force-reload)
echo -n “Restarting $DESC: $NAME”
d_stop
sleep 1
d_start
echo “.”
;;
*)
echo “Usage: $SCRIPTNAME stop” >&2
exit 3
;;
esac
exit 0
That’s all folks!