Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

start java class on machine startup

Status
Not open for further replies.

tomecki24

Programmer
Jun 13, 2001
52
DE
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
 
hello,

could You help mi with that?
When I test this script, it works but when it's run on computer startup it doens't work.

Please help

Tomasz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top