Looking for Linux Red Hat Genesys Framework Startscripts

Has someone init.d start scripts?

I’m looking for the scripts especially for:
-LCA
-DB-Server
-Config-Server
-Solution Control Server
-T-Server
-Message Server

If not, I have to create my own… :wink:

Yes, I try to send them to you today or tomorrow

1 Like

scripts for FlexLM and LCA (some comments are in french !!!).
They are goods for redhat, fedora…

I suppose you know how to manage with chkconfig

FlexLM :
#!/bin/bash

chkconfig: 35 99 9

description: start or stop flexlm

FLEXHOME=/usr/flexlm
LMGRD=$FLEXHOME/lmgrd
LICFILE=$FLEXHOME/license_$HOSTNAME.dat
LOGFILE=$FLEXHOME/flexlm.log

case “$1” in
start)
#start argument
echo “Starting $(basename $0)”
rm -f $LOGFILE
if [ -x $LMGRD ]
then
if [ -f $LICFILE ]
then
$LMGRD -c $LICFILE -l $LOGFILE
fi
fi
;;
stop)
#stop argument
echo “Stopping $(basename $0)”
if [ -x $LMGRD ]
then
$FLEXHOME/lmdown -c $LICFILE -q
fi
;;
status)
#status argument
echo -n “Status $(basename $0)”
if [ -x $LMGRD ]
then
$FLEXHOME/lmstat -c $LICFILE
fi
;;
*)
#other cases
echo “Usage: $(basename $0) start | stop | status”
exit 1
esac

LCA :

chkconfig: 3 99 99

description: Service Genesys lca

system.

. /etc/rc.d/init.d/functions

case “$1” in
start)
echo -n “Démarrage du service : Genesys LCA”
if [ -f /usr/gcti/lca/lca ]; then
/usr/gcti/lca/lca 4999 >/dev/null &
fi
;;
stop)
echo -n “Arrêt du service : Genesys LCA”
ProcessID=$( ps -fu root | grep lca | grep -v grep | awk ‘{print $2}’ )
kill -9 $ProcessID
;;
status)
status gctilca
;;
)
echo "
** Usage: gctilca start|stop|status"
exit 1
esac

exit 0

2 Likes

Hi, thanks. :-*
But from a first look - this works? ::slight_smile:

Maybe more scripts available from other users? :wink:

I had some problems using sudo in my scripts.
I would like to run the Applications as another user than root.
And the LCA was not executed as expected in my first test.
I will try it next week. ;D

of course it works… ::slight_smile:
With appropiate rights, you can use this scripts. :wink: