Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Wörsty on February 15, 2008, 07:48:45 PM
-
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... ;)
-
Yes, I try to send them to you today or tomorrow
-
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
[u][b]FlexLM :[/b][/u]
#!/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
[u][b]LCA :[/b][/u]
# 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
-
Hi, thanks. :-*
But from a first look - this works? ::)
Maybe more scripts available from other users? ;)
I had some problems using [b]sudo[/b] 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... ::)
With appropiate rights, you can use this scripts. ;)