Init Scripts

This page provides init scripts, which may be used to start WebMethods services when the system comes up, or shut them down cleanly.

Red Hat / Fedora

All init scripts are following Red Hat conventions: They are stored in /etc/init.d. They are activated, for example, using

    /sbin/chkconfig --add wmbroker

Likewise, services can be disabled using

    /sbin/chkconfig --del wmbroker

Each script is configured through a file in /etc/sysconfig. These scripts are specifying variables.

Broker

The script wmbroker is used to start/stop the Broker. It is supporting the following variables in /etc/sysconfig/wmbroker:

  • BROKER_ROOT_DIR

    Configures the brokers home directory, defaults to /opt/webMethods7/Broker.

  • BROKER_USER

    Configures the user, under which the broker is running. Defaults to wm. May be empty, in which case root is assumed.

Integration Server

The script wmis is used to start/stop the Integration Server. It is supporting the following variables in /etc/sysconfig/wmis:

  • IS_ROOT_DIR

    Configures the integration servers home directory, defaults to /opt/webMethods7/IntegrationServer.

  • IS_USER

    Configures the user, under which the integration server is running. Defaults to wm. May be empty, in which case root is assumed.

My WebMethods Server

The script wmmws is used to start/stop the MWS (My Webmethods Server). It is supporting the following variables in /etc/sysconfig/wmmws:

  • MWS_ROOT_DIR

    Configures the servers home directory, defaults to /opt/webMethods7/MWS.

  • MWS_USER

    Configures the user, under which the MWS is running. Defaults to wm. May be empty, in which case root is assumed.

Optimize Data Collector

The script wmdataCollector is used to start/stop the Optimize Data Collector. It is supporting the following variables in /etc/sysconfig/wmdataCollector:

  • OPT_DC_ROOT_DIR

    Configures the data collectors root directory, defaults to /opt/webMethods7/optimize/dataCollector.

  • OPT_DC_USER

    Configures the user, under which the data collector is running. Defaults to wm. May be empty, in which case root is assumed.

    Note: Due to a bug in the WebMethods installer, setting the user ID in the OPT_DC_USER variable is not sufficient, as of this writing. Additionally, you need to change the variable OPTIMIZE_USER in $OPT_DC_ROOT_DIR/bin/kenobiEnv.sh manually, before using this script. This variable is hard coded to the value

      OPTIMIZE_USER=webmbam
    

    Suggested is to comment it out, or enter the same value than OPT_DC_USER:

      OPTIMIZE_USER=wm
    

Optimize Analytic Engine

The script wmanalysis is used to start/stop the Optimize Analytic Engine. It is supporting the following variables in /etc/sysconfig/wmanalysis:

  • OPT_AN_ROOT_DIR

    Configures the analytic engines root directory, defaults to /opt/webMethods7/optimize/analysis.

  • OPT_AN_USER

    Configures the user, under which the analytic engine is running. Defaults to wm. May be empty, in which case root is assumed.

    Note: Due to a bug in the WebMethods installer, setting the user ID in the OPT_AN_USER variable is not sufficient, as of this writing. Additionally, you need to change the variable OPTIMIZE_USER in $OPT_AN_ROOT_DIR/bin/kenobiEnv.sh manually, before using this script. This variable is hard coded to the value

      OPTIMIZE_USER=webmbam
    

    Suggested is to comment it out, or enter the same value than OPT_AN_USER:

      OPTIMIZE_USER=wm
    

Optimize Prediction Engine

The script wmprediction is used to start/stop the Optimize Prediction Engine. It is supporting the following variables in /etc/sysconfig/wmprediction:

  • OPT_PR_ROOT_DIR

    Configures the prediction engines root directory, defaults to /opt/webMethods7/optimize/prediction.

  • OPT_PR_USER

    Configures the user, under which the prediction engine is running. Defaults to wm. May be empty, in which case root is assumed.

    Note: Due to a bug in the WebMethods installer, setting the user ID in the OPT_PR_USER variable is not sufficient, as of this writing. Additionally, you need to change the variable OPTIMIZE_USER in $OPT_PR_ROOT_DIR/bin/kenobiEnv manually, before using this script. This variable is hard coded to the value

      OPTIMIZE_USER=webmbam
    

    Suggested is to comment it out, or enter the same value than OPT_PR_USER:

      OPTIMIZE_USER=wm
    

CentraSite GE

The script wmcentrasite is used to start/stop CentraSite GE. It is supporting the following variables in /etc/sysconfig/wmcentrasite:

  • CS_ROOT_DIR

    Configures the CentraSite root directory, defaults to /opt/webMethods7/CentraSiteGE7.

  • CS_USER

    Configures the user, under which CentraSite is running. Defaults to wm. May be empty, in which case root is assumed.