" /> Looking for Linux Red Hat Genesys Framework Startscripts - Genesys CTI User Forum

Author Topic: Looking for Linux Red Hat Genesys Framework Startscripts  (Read 4786 times)

Offline Wörsty

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • Homepage
Looking for Linux Red Hat Genesys Framework Startscripts
« on: February 15, 2008, 07:48:45 PM »
Advertisement
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... ;)

Offline Sylvainsjc

  • Full Member
  • ***
  • Posts: 137
  • Karma: 2
Re: Looking for Linux Red Hat Genesys Framework Startscripts
« Reply #1 on: February 16, 2008, 08:21:55 AM »
Yes, I try to send them to you today or tomorrow

Offline Sylvainsjc

  • Full Member
  • ***
  • Posts: 137
  • Karma: 2
Re: Looking for Linux Red Hat Genesys Framework Startscripts
« Reply #2 on: February 16, 2008, 10:24:40 AM »
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

Offline Wörsty

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • Homepage
Re: Looking for Linux Red Hat Genesys Framework Startscripts
« Reply #3 on: February 16, 2008, 08:12:43 PM »
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

Offline Sylvainsjc

  • Full Member
  • ***
  • Posts: 137
  • Karma: 2
Re: Looking for Linux Red Hat Genesys Framework Startscripts
« Reply #4 on: February 16, 2008, 09:50:04 PM »
of course it works...  ::)
With appropiate rights, you can use this scripts.  ;)