#!/bin/sh # #$Header: ##****************************************************************************** ## Startup script for the LogTrend ComplexAlarm ## 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: ComplexAlarm # pidfile: /var/run/ComplexAlarm.pid ##****************************************************************************** #$Log: rh_mdk.ComplexAlarm,v $ #Revision 1.2 2001/09/27 15:37:47 lsimonneau #*** empty log message *** # #Revision 1.1 2001/07/02 16:35:44 lsimonneau #Ajout des fichiers init.d # # CONF_FILE=/etc/LogTrend/ComplexAlarm # Source function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start) echo -n "Starting LogTrend ComplexAlarm: " daemon /usr/lib/perl5/LogTrend/ComplexAlarm/ComplexAlarm -d $CONF_FILE echo ;; stop) echo -n "Shutting down LogTrend ComplexAlarm: " killproc ComplexAlarm echo rm -f /var/run/ComplexAlarm.pid ;; status) status ComplexAlarm ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 esac exit 0