#!/bin/sh

#####################
# Site-specific parameters
# Change this variables as needed

# glib-config
GLIBCONF = /usr/local/bin/glib-config
GLIBLIB = `$GLIBCONF --libs`

# MySQL include and lib directories
MYSQLINC = /usr/local/mysql/include
MYSQLLIB = /usr/local/mysql/lib

# Generic LD_LIBRARY_PATH
LD_LIBRARY_PATH=$GLIBLIB:$MYSQLLIB

# E-mail address where crash notifications are sent
NOTIFY = my-dbm@mydb.net

#####################



while echo RIP server started `date` >> rip.log
do
  ./whois_rip $1
  /usr/bin/echo "Reimp whoisd crashed & restarted\n" `date` | mailx -s "Reimp whoisd crashed & restarted" $NOTIFY
  sleep 1
done

