[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] Starting and stopping the handle server from Unix rc scripts [SEC=UNCLASSIFIED]



Phillip,

This is how we currently start and stop the handle process via script:

handle_start)

HANDLE_HOME=/usr/local/handle
HANDLE_BIN=$HANDLE_HOME/server/bin
echo "Starting handle"
su handle -c "cd $HANDLE_HOME; nohup java -cp $HANDLE_BIN/handle.jar:$HA
NDLE_BIN/mysql-connector-java-5.1.6-bin.jar net.handle.server.Main $HANDLE_HOME/
server/svr_1 2>&1 &"
;;
handle_stop)


        HANDLE_PID=`ps -ef |grep handle\.jar| awk '/^ *handle/ {print $2}'`
        if [ "$HANDLE_PID" != "" ]; then
                echo "Stopping handle..."
                su handle -c "kill $HANDLE_PID"
        else
                echo "Cannot find handle process to stop."
                exit 2
        fi
;;

We do occasionally get caught up with the lock file, and we should update the script to account for it. If you want more of the script I can cut out relevant sections and send it off list.

Hope this helps,

Mike

On 7/28/10 1:46 AM, Chadwick, Philip wrote:
Hi,

Currently looking at implemention details for the handle service under
Linux.

Starting the server manually is simply not an acceptable option.

Is anyone using a Java Service Wrapper to start/stop the handle server.
e.g.:

http://wrapper.tanukisoftware.com/doc/english/introduction.html

Alternatively, is there anyone using home grown start/stop scripts using
Xvfb for the console?

Any other suggestions?

Cheers,




_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info