Hello,
I've got a question. I've got following script:
#!/bin/sh
# Script for starting a remote repository server
case "$1" in
'start')
echo "Repository start ..."
CP=/usr/tibco/Repo32/jars/TIBRepoServer32.jar:$CLASSPATH
/usr/j2se/bin/java -Xmx512m -cp $CP
com.tibco.repo.RemoteRepoProcess ./server.ini
echo "Repository start ... done."
;;
'stop')
echo "Repository stop ..."
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
Is it correct? What to write to stop that class?
And is it posiible anyway to start java class as deamon?
Thank you
Tomasz
I've got a question. I've got following script:
#!/bin/sh
# Script for starting a remote repository server
case "$1" in
'start')
echo "Repository start ..."
CP=/usr/tibco/Repo32/jars/TIBRepoServer32.jar:$CLASSPATH
/usr/j2se/bin/java -Xmx512m -cp $CP
com.tibco.repo.RemoteRepoProcess ./server.ini
echo "Repository start ... done."
;;
'stop')
echo "Repository stop ..."
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
Is it correct? What to write to stop that class?
And is it posiible anyway to start java class as deamon?
Thank you
Tomasz