#!/bin/sh
#
# aprsd.init for version 2.1.5.  starts or stops aprsd server.
# This file should be placed in /etc/rc.d/init.d/ for RedHat and Mandrake.
# On Suse and ubuntu systems it goes in /etc/init.d
# 
#
#
# Author:      Dale Heatherington <aprsd1@wa4dsy.net>
#
# See how we were called.
case "$1" in
  start)
   echo  "Starting aprs server daemon. "
   
   /home/aprsd2/aprsd -d
   
	echo
	touch /var/lock/aprsd
	;;
  stop)
   echo  "Stopping aprs server daemon. Please wait 30 secs before re-starting."
	killall -INT aprsd
	rm -f /var/lock/aprsd
	;;
  *)
	echo "Usage: aprsd.init {start|stop}"
	exit 1
esac

exit 0

