#!/bin/sh
#
# glogd   Start/Stop glogger daemon
#
# chkconfig: 2345 90 90
# description: glogger daemon.
#
prefix=@prefix@
exec_prefix=@exec_prefix@

progname=glogd
conffile=@confdir@/${progname}.conf
vardir=/tmp

sudo="sudo -u nobody"

program=@bindir@/glogger
glogdfunc=@bindir@/glogd-func
pidfile=${vardir}/${progname}.pid

OPTIONS="-config ${conffile} -daemon ${pidfile}"

# ------------------------------------------------------------------ #

RETVAL=0
. ${glogdfunc}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	restart
        ;;
  status)
	status
        ;;
  checkconf)
	checkconf
        ;;
  *)
	echo $"Usage: $0 {start|stop|restart|status|checkconf}"
	RETVAL=1
esac

exit $RETVAL
