#!/bin/sh
# Startup script for linesrv
#
# chkconfig: 345 89 89
# description: Dink aan iets moois om hier in te sit.

# this file is a contribution from Koot <kdowd@dgit.co.za>
# He's using it but I (S. Fuchs) have not tested it.
# Please see whether it gets a SIGQUIT or SIGTERM, any other
# signal should not be used to terminate linesrv

# Source function library.
. /etc/rc.d/init.d/functions

[ -f /usr/bin/linesrv ] || exit 0

case "$1" in
  start)
		echo -n  "Starting linesrv: " 
		daemon linesrv
		echo
		;;
	
  stop)
		echo -n "Shutting down linesrv "
		killproc linesrv 
		echo
		;;
	
	status)
		status linesrv
		;;

	restart)
		$0 stop
		$0 start
		;;
	
  *)
		echo "Usage: linesrv {start|stop|restart|status}"
		exit 1

esac

exit 0

