#!/bin/bash

###########################################################
# ualf init script
# Gets installed in /etc/init.d
#
# chkconfig: 345 99 01 
# description: ualf
###########################################################

. /etc/sigmet/profile.conf
. /etc/profile.d/sigmet.sh

start() {
echo -n "Starting UalfRelayIn : "
sudo -u operator -E ${install_root}/config/pipes/UalfRelayIn 
#${start_ualf}
echo "done."
}
stop() {
echo -n "Shutting down UalfRelayIn: "
/usr/bin/killall UalfRelayIn
echo "done."
echo ${stop_ualf} 
}

# See how we were called
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 5
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
esac

exit 0
