To run the node manager as a background process upon system startup, you can run the node manager as a service on Windows or you can configure the node manager as a daemon on Unix.
For Unix
To start the node manager upon system startup and to run it in the background:
- Open a terminal and run the following script:
nohup <Oracle_Middleware_Home>/user_projects/domains/<Primavera_Domain>/bin/startNodeManager.sh > logfilename.log 2>&1 &
- Create a shell script using the following sample script:
#! /bin/bash
#
# wlsnmd Oracle Weblogic NodeManager service
#
# chkconfig: 345 85 15
# description: Oracle Weblogic NodeManager service
case "$1" in
start)
export WL_HOME=<Oracle_Middleware_Home>/wlserver/
$WL_HOME/../user_projects/domains/<Primavera_Domain>/bin/startNodeManager.sh
;;
*)
echo "Usage: $0 {start}"
exit 1
esac
exit_status
- Save the script to /etc/init.d/nodemgr.
- Run the following command with root privileges:
# chmod +x /etc/init.d/nodemgr
# chkconfig --add nodemgr
For Windows
To create and run a node manager as a Windows service:
- Log in to a machine with administrative privileges.
- Go to <Oracle_Middleware_Home>/wlserver/server/bin.
- Edit installNodeMgrSvc.cmd.
- Comment out the following lines:
set NODEMGR_HOST=<host>
set NODEMGR_PORT=<port>
- Save your changes and then close the file.
- Go to <Oracle_Middleware_Home>/user_projects/domains/<Primavera_Domain>/bin.
- Edit installNodeMgrSvc.cmd.
- Comment out the following lines:
set NODEMGR_HOST=<host>
set NODEMGR_PORT=<port>
- Save your changes and then close the file.
- Open a command prompt and then complete the following:
- Change your directory to <Oracle_Middleware_Home>/user_projects/domains/<Primavera_Domain>/bin.
- Run installNodeMgrSvc.cmd.
- Note: If the node manager service has already been installed, the following message will display: CreateService failed - The specified service already exists.
- Close the command prompt.
- Go to Control Panel\All Control Panel Items\Administrative Tools and then click Services.
- Right-click Oracle WebLogic <primavera_domain> NodeManager and then click Start.