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:
- Open a terminal and log in to the system as a super user.
- Change the directory to the following location:
/etc/init.d
- Create a text file called wlsnodemgr.
- 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.
- Save and close the file.
- Create a background service by running the following command:
chkconfig -- add wlsnodemgr
- 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