2 #---------------------------------------------------------
4 #---------------------------------------------------------
6 if [ ! $TANGO_HOST ] && [ -f @TANGO_RC_FILE@ ]; then
10 #---------------------------------------------------------
11 # Check $DISPLAY variable
12 #---------------------------------------------------------
15 echo "Display is $DISPLAY"
18 echo "DISPLAY environment variable is not defined !"
19 echo "Please, enter your DISPLAY name."
23 # get the end of string to know if ":0" has been set
24 start=`expr $answer : '.*:' \| $answer`
26 if [ $start = $answer ]
33 echo "Starting astor on $DISPLAY"
35 echo "DISPLAY is not defined ! Astor cannot start !"
40 #---------------------------------------------------------
41 # Set the Class Path for Tango and Asor usage
42 #---------------------------------------------------------
44 LIB_DIR=@prefix@/share/java; export LIB_DIR
45 APP_DIR=@prefix@/share/java; export APP_DIR
47 TANGO_CLASS=$LIB_DIR/JTango.jar; export TANGO_CLASS
49 ASTOR_CLASS=$LIB_DIR/Astor.jar; export ASTOR_CLASS
50 JIVE_CLASS=$LIB_DIR/Jive.jar; export JIVE_CLASS
51 LOGVIEWER=$LIB_DIR/LogViewer.jar; export LOGVIEWER
52 LOG4J=$LIB_DIR/log4j.jar; export LOG4J
54 JSSHTERM=$LIB_DIR/JSSHTerminal.jar
55 DBBENCH=$LIB_DIR/DBBench.jar
57 ATK_CLASS=$LIB_DIR/ATKCore.jar:$LIB_DIR/ATKWidget.jar
58 ATK_CLASS=$ATK_CLASS:$APP_DIR/atkpanel.jar:$APP_DIR/tool_panels.jar
61 CLASSPATH=$TANGO_CLASS:$ASTOR_CLASS:$JIVE_CLASS:$ATK_CLASS:$LOGVIEWER:$JSSHTERM:$DBBENCH:$LOG4J
64 #---------------------------------------------------------
65 # Start the Astor process
66 #---------------------------------------------------------
69 @JAVA@ -mx128m -DTANGO_HOST=$TANGO_HOST admin.astor.Astor $*