You can configure it as a sensor. I have a fake queue "admin" an the
qmaster which keep on that sensor and some minor maintenance.


2011/7/23, Wagner, Justin <[email protected]>:
> I have been playing with the flex-grid scripts written by Mark Olesen
> (http://olesenm.github.com/flex-grid/index.html).  And I find them to be
> very helpful to integrate FlexLM into our grid.
>
> I am having trouble getting qlicserver (perl script) to run as a service.
>
> I have created the following shell script and put it at /etc/init.d, however
> when I try to run it I get the following error:
>
> $ service qlicserver status
> qlicserver is stopped
> $ service qlicserver start
> Starting qlicserver server:
> /sbin/service: line 66: 12760 Terminated              env -i LANG="$LANG"
> PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
>
> And if I try to run the script directly I get:
>
> $ /etc/init.d/qlicserver
> Usage: /etc/init.d/qlicserver {start|stop|restart|reload|status}
> $ /etc/init.d/qlicserver status
> qlicserver is stopped
> $ /etc/init.d/qlicserver start
> Starting qlicserver server:
> Terminated
>
> Can anybody give me any pointers?  Maybe there is a better way to get
> qlicserver to always always run independently?
>
> -justin
>
>
> <start of code>
> #!/bin/sh
> #
> # chkconfig: 35 90 12
> # description: qlicserver : FlexLM and SGE Integration
> #
>
> # Get function from functions library
> . /etc/init.d/functions
>
> # Start the service qlicserver
> start() {
>         echo $"Starting qlicserver server: "
>         /corp/grid/wa/site/qlicserver
>         RETVAL=$?
>         echo
>         ### Create the lock file ###
>         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/qlicserver
>         return $RETVAL
> }
>
> # Restart the service qlicserver
> stop() {
>         echo $"Stopping qlicserver: "
>         killproc qlicserver
>         RETVAL=$?
>         echo
>         ### Now, delete the lock file ###
>         [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/qlicserver
>         return $RETVAL
> }
>
> ### main logic ###
> case "$1" in
>   start)
>         start
>         ;;
>   stop)
>         stop
>         ;;
>   status)
>         status qlicserver
>         RETVAL=$?
>         ;;
>   restart|reload)
>         stop
>         start
>         RETVAL=$?
>         ;;
>   condrestart)
>         if [ -f /var/lock/subsys/qlicserver ]; then
>             stop
>             start
>             RETVAL=$?
>         fi
>         ;;
>   *)
>         echo $"Usage: $0 {start|stop|restart|reload|status}"
>         RETVAL=3
> esac
>
> exit $RETVAL
>
> <end of code>
>
>
>
>
>
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users
>

-- 
Inviato dal mio dispositivo mobile
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to