Daemonizing the Node Manager for Primavera Applications

WebLogic does not provide scripts for uninstalling and re-installing the Node Manager daemon process. If your WebLogic server implementation includes a Node Manager daemon process, uninstall it. For more information about removing a daemon process, refer to your operating system documentation.

To create a daemon process:

  1. Open a terminal and log in to the system as a super user.
  2. Change the directory to the following location:

    /etc/init.d

  3. Create a text file called wlsnodemgr.
  4. Edit wlsnodemgr and add the following lines:

    #!/bin/bash

    # wlsnodemgr startup script for Node Manager

    # chkconfig: - 74 15

    # description: weblogic Node Manager

    # processname: wlsnodemgr

    # Source function library

    . /etc/rc.d/init.d/functions

    # Modify below values appropriately

    export WLS_DOMAIN_HOME=<WebLogic_Home>/user_projects/domains/<P6_EPPM_Domain>

    export P6HOME=[<P6_EPPM_Home>]

    export LOG_FILE_LOC=/home/oracle/wlsnodemgr.log

    export DAEMON_USER=oracle

    start(){

    nohup su - $DAEMON_USER -c $ <P6_EPPM_Domain>/bin/startNodeManager.sh > $LOG_FILE_LOC &

    sleep 2m

    nohup su - $DAEMON_USER -c $ <P6_EPPM_Home>/scripts/start_primavera.sh >> $LOG_FILE_LOC &

    }

    stop(){

    nohup su - $DAEMON_USER -c $<P6_EPPM_Home>/scripts/stop_primavera.sh >> $LOG_FILE_LOC &

    nohup su - $DAEMON_USER -c $<P6_EPPM_Domain>/bin/stopNodeManager.sh >> $LOG_FILE_LOC &

    }

    case "$1" in

    start)

    start

    ;;

    stop)

    stop

    ;;

    *)

    echo $"Usage: $PROG {start|stop}"

    exit 1

    esac

    Where:

    • <WebLogic_Home> is the WebLogic home directory. The default is Oracle/Middleware/Oracle_Home.
    • <P6_EPPM_Domain> is the WebLogic domain for P6 EPPM that was set during configuration.
    • <P6_EPPM_Home> is the P6 EPPM home directory that was set during installation.
  5. Save and close the file.
  6. Create a background service by running the following command:

    chkconfig -- add wlsnodemgr

  7. Activate the background service by running the following command:

    chkconfig wlsnodemgr on

    Note: The background service can be stopped by running the following command:

    chkconfig wlsnodemgr off

Related Topics

Using the WebLogic Scripting Tool on Linux or UNIX

Creating a Configuration and Key File

Associating the Administration Server with Machines on a P6 EPPM Domain

Configure a boot.properties File for the Administration and Managed Servers

Using WebLogic Scripting to Start the P6 EPPM WebLogic Domain

Using WebLogic Scripting to Stop the WebLogic Domain for P6 EPPM

Starting the Node Manager with WebLogic

Setting the Node Manager as a Windows Service



Legal Notices | Your Privacy Rights
Copyright © 2022

Last Published Wednesday, November 30, 2022