If you service doesn't start, and you get a response that indicates the script file isn't found when you try to execute manually, even though execute permissions are fully open, you probably have yourself a DOS file... run dos2unix on your script and re-try...
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Sunday, July 24, 2011 5:00 AM To: [email protected] Subject: users Digest, Vol 7, Issue 41 Send users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://gridengine.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of users digest..." Today's Topics: 1. Re: qlicserver (flex-grid) (Stefano Bridi) ---------------------------------------------------------------------- Message: 1 Date: Sat, 23 Jul 2011 17:17:44 +0200 From: Stefano Bridi <[email protected]> To: "Wagner, Justin" <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [gridengine users] qlicserver (flex-grid) Message-ID: <CAOyJLhkqLNepV+c4=5fwy5zqsu+pcm0wizkhdhjzn2gpswe...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 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 End of users Digest, Vol 7, Issue 41 ************************************ _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
