Listing of Source startserver.sh
#!/bin/sh
# NetPhantom Startup script

COMMAND='java -Xms128m -Xmx256m
 -XX:+IgnoreUnrecognizedVMOptions --add-modules=ALL-SYSTEM
 -Djava.awt.headless=true
 -Djdk.tls.ephemeralDHKeySize=2048
 -Djdk.tls.rejectClientInitiatedRenegotiation=true
 -classpath .:NetPhantomServer.jar:NetRexxR.jar:bcprov.jar:bcpkix.jar:bcutil.jar:acme-np.jar:openxml-1.2-np.jar:mail.jar:activation.jar:derby.jar
 se.entra.phantom.server.Start
 restart'
 
RSTCMD='java -classpath . UpgradeNetPhantomServer'

echo "*** Starting the NetPhantom Server ***"
PW=`dirname $0`
while true
  do
    cd $PW;$COMMAND
    RC=$?
    if [ $RC -eq 1000 ] || [ $RC -eq 232 ]; then
      echo "*** Restarting the NetPhantom Server ***"
    elif [ $RC -eq 1001 ] || [ $RC -eq 233 ]; then
      echo "*** Upgrading the NetPhantom Server ***"
      $RSTCMD > upgrade.log
      if [ $? != 0 ]; then
        echo "*** Error when upgrading the NetPhantom Server ***"
        exit 1
      fi
      echo "*** Restarting the NetPhantom Server after upgrade ***"
    elif [ $RC -eq 0 ]; then
      echo "*** The Server has been stopped normally ***"
      exit 0
    else
      echo "*** Error when starting or restarting the NetPhantom Server ***"
      exit 1
    fi
  done