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.
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 script | Meaning |
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. |
Rename the script WSO2 SOA Enablement Server (without the .sh) amd save it in the /etc/init.d/ directory.
(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
Parameter | Function |
start | Starts WSO2 SOA Enablement Server |
stop | Stops WSO2 SOA Enablement Server |
restart | Restarts WSO2 SOA Enablement Server |
condrestart | Restarts WSO2 SOA Enablement Server only if it is already running |
status | Displays whether WSO2 SOA Enablement Server is running or not |
![]() | Note |
---|---|
The provided startup script may be run by the root user. The script uses the su command to run as WASP_USER. |