Running WSO2 SOA Enablement Server as a UNIX Daemon  Locate

WSO2 SOA Enablement Server can be forced to start as a system daemon using the script located at WASP_HOME/conf/bininst/wasp.sh. This script can be renamed to WSO2 SOA Enablement Server as per UNIX conventions. The directions for using this script follow.

  1. Tailor the service script as needed. The meaning of variables is shown in Table 1, “Variables in the WSO2 SOA Enablement Server Service Script”.

    Table 1. Variables in the WSO2 SOA Enablement Server Service Script

    Name of variable in WSO2 SOA Enablement Server service scriptMeaning
    WASP_HOME

    Home directory of WSO2 SOA Enablement Server

    Default value: WSO2 SOA Enablement Server Installation directory.

    JAVA_HOME

    Home directory of Java

    Default value: None. This variable must be set manually.

    WASP_USER

    User under whom the WSO2 SOA Enablement Server should run. If this is set to root, it will be changed to "nobody".

    Default value: Determined during runtime according to the user who owns the WASP_HOME directory. If the user is root, this value reverts to "nobody".

    time-out

    Number of seconds the system waits for WSO2 SOA Enablement Server to successfully start up.

    Default value: 60 seconds.

  2. Rename the script WSO2 SOA Enablement Server (without the .sh) amd save it in the /etc/init.d/ directory.

  3. (optional) To start WSO2 SOA Enablement Server automatically in the appropriate run-level, create SXXwasp and KXXwasp symbolic links in the appropriate /etc/rcX.d/ directory.

Now you may start and stop WSO2 SOA Enablement Server using the installed script. You can invoke this script directly or by using specific OS tools (for example, using the service command on RedHat Linux).

The parameters of the script are shown in Table 2, “Parameters of init.d Scripts”.

Table 2. Parameters of init.d Scripts

ParameterFunction
startStarts WSO2 SOA Enablement Server
stopStops WSO2 SOA Enablement Server
restartRestarts WSO2 SOA Enablement Server
condrestartRestarts WSO2 SOA Enablement Server only if it is already running
statusDisplays whether WSO2 SOA Enablement Server is running or not
[Note]Note

The provided startup script may be run by the root user. The script uses the su command to run as WASP_USER.