#!/bin/sh
#
#$Header:
##******************************************************************************
## Startup script for the LogTrend FtpAgent
##  Project      : LogTrend 1.0.0.0 - Atrid Systemes
##  Author       : Sylvain Lhullier s.lhullier@atrid.fr
# chkconfig: 345 85 15
# description: LogTrend is a supervision system
# processname: FtpAgent
# pidfile: /var/run/FtpAgent.pid
# config: /etc/LogTrend/FtpAgent.conf
##******************************************************************************
#$Log: init_d.rh_mdk,v $
#Revision 1.2  2002/01/03 12:24:17  slhullier
#bin prefix is /usr/bin
#
#Revision 1.1  2001/07/31 07:40:39  slhullier
#
#WidgetAgent/init.d/{deb|rh_mdk}.WidgetAgent -> WidgetAgent/init_d.{deb|rh_mdk}
#
#Revision 1.1  2001/07/02 16:09:02  lsimonneau
#Add init.d files.
#


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

# See how we were called.
case "$1" in
  start)
        gprintf "Starting LogTrend FtpAgent: "
        daemon /usr/bin/FtpAgent -D -r
        echo
        ;;
  stop)
        gprintf "Shutting down LogTrend FtpAgent: "
        killproc FtpAgent
        echo
        rm -f /var/run/FtpAgent.pid
        ;;
  status)
        status FtpAgent
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        gprintf "Usage: %s {start|stop|restart|status}\n" "$0"
        exit 1
esac

exit 0

