Configuring appeonserver.bat

The appeonserver.bat file (Windows) or appeonserver.sh file (Unix\Linux) is the batch program run by Status Monitor when it detects that PowerServer has shut down.

Configuring appeonserver.bat (Windows)

The appeonserver.bat file contains the following code:

@echo off

REM if use WebLogic, please replace <Domain> with real path and uncomment the line below.
REM @start call "<Domain>\startWebLogic.cmd"

REM if use WebSphere, please replace <WebSphere> with real path and uncomment the line below.
REM @start call "<WebSphere>\AppServer\bin\startServer.bat" server1

REM if use JBoss, please replace <JBoss> with real path uncomment and the line below.
REM @start call "<JBoss>\bin\run.bat"

Make the following changes to the file:

  1. Remove the notation "REM" before the command line that starts the application server/PowerServer.

  2. Replace the wildcard character string, which stands for the application server, with the home directory of the application server.

For example, if PowerServer works on JBoss WildFly 10, the following script should be modified.

Original script:

REM @start call "<JBoss>\bin\run.bat"

Modified script:

start cmd /c "D:\wildfly-10.0.0.Final\bin\standalone.bat"

Configuring appeonserver.sh (Unix\Linux)

The appeonserver.sh file contains the following script:

#If use WebLogic, please uncomment the line below.
#"<Domain>/startWebLogic.sh"

#If use WebSphere, please uncomment the line below.
#"<WebSphere>/AppServer/bin/startServer.sh" server1

#If use JBoss, please uncomment the line below.
#"<Jboss>/bin/run.sh"

Make the following changes to the file:

  1. Remove the notation "#" before the command line that starts the application server/PowerServer.

  2. Replace the wildcard character string that stands for the application server, with the home directory of the application server.

For example, if PowerServer is installed to JBoss WildFly 10, the following script should be modified.

Original script:

#"<Jboss>/bin/run.sh"

Modified script:

"/export/home/wildfly-10.0.0.Final/bin/standalone.sh"