Daemonizing the P6 EPPM WebLogic Domain Processes
Starting and Stopping Servers > Configuring the Node Manager to Start and Stop Servers > Using the WebLogic Scripting Tool on Linux or UNIX
This section explains how to configure the P6 EPPM domain, when installed on Linux, as a daemon process through systemd. If your WebLogic server implementation already includes a Node Manager daemon process, uninstall it prior to completing this instruction. For more information about systemd, refer to your operating system documentation.
To daemonize the Node Manager and your P6 EPPM applications:
- Open a terminal and log in to the system as a super user (root user) or as a user with sudo access.
- Change the directory to the following location:
/etc/
systemd/system - Create a service file called wlsnodemgr.service.
- Edit wlsnodemgr.service and add the following lines:
[Unit]
Description=WebLogic nodemanager service
After=network.target nss-lookup.target remote-fs.target
Wants=nss-lookup.target remote-fs.target
Before=p6eppm.service
[Service]
Type=simple
Environment=WebLogic_Home=<WebLogic_Home_Path>
Environment=P6_EPPM_Domain=${WebLogic_Home}/user_projects/domains/<P6_EPPM_Domain_Name>
Environment=NodeMgr_Log_File=<NodeMgr_Log_Path>/wlsnodemgr.log
ExecStart=/bin/bash -c './${P6_EPPM_Domain}/bin/startNodeManager.sh > $NodeMgr_Log_File'
ExecStop=/bin/bash -c './${P6_EPPM_Domain}/bin/stopNodeManager.sh > $NodeMgr_Log_File'
RemainAfterExit=yes
User=<Linux_User>
Group=<Linux_Group>
KillMode=process
LimitNOFILE=65535
TimeoutStartSec=120
[Install]
WantedBy=multi-user.target
Where:
- <WebLogic_Home_Path> is the WebLogic home directory.
- <P6_EPPM_Domain_Name> is the WebLogic domain name for P6 EPPM that was set during configuration/installation of Primavera P6
- <NodeMgr_Log_Path> is the log path where the start and stop processes write their logs. You can use any location.
- <Linux_User> is the Linux user to associate with and run the daemon process.
- <Linux_Group> is the Linux user group to associate with and run the daemon process.
- Save and close the file.
- Create a service file called p6eppm.service.
- Edit the p6eppm.service and add the following lines:
[Unit]
Description=P6 EPPM service
After=wlsnodemgr.service
Requires=wlsnodemgr.service
BindsTo=wlsnodemgr.service
[Service]
Type=simple
Environment=P6_Log_File=<P6_Log _Path>/p6.log
Environment=P6_EPPM_Home=<P6_EPPM_Home>
ExecStart=/bin/bash -c './${P6_EPPM_Home}/scripts/start_Primavera.sh > $P6_Log_File'
RemainAfterExit=yes
ExecStop=/bin/bash -c './${P6_EPPM_Home}/scripts/stop_Primavera.sh > $P6_Log_File'
User=<Linux_User>
Group=<Linux_Group>
KillMode=process
TimeoutStartSec=1200
[Install]
WantedBy=multi-user.target
Where:
- <P6_EPPM_Home> is the P6 EPPM home directory that was set during installation.
- <P6_Log _Path> is the log path where the start and stop processes write their logs. You can use any location.
- <Linux_User> is the Linux user you to associate with and run the daemon process.
- <Linux_Group> is the Linux user group to associate with and run the daemon process.
- Save and close the file.
- Enable the services, by running:
sudo systemctl enable wlsnodemgr p6eppm
- Reload the Services, by running:
sudo systemctl daemon-reload
- Check the Status of the services and logs, by running:
sudo systemctl status wlsnodemgr
sudo systemctl status p6eppm
Note: The output shows - Active: inactive (dead) first time and shows - Active: active (running) after reboot of server or after manual start.
Once you have created the services, you can:
- Check the start and stop logs, by running:
cat <NodeMgr_Log_Path>/wlsnodemgr.log
cat <P6_Log _Path>/p6.log
- Stop the service, by running: sudo systemctl stop p6eppm wlsnodemgr
- Start the service, by running:
sudo
systemctl start wlsnodemgr p6eppm - Disable the service, by running:
sudo
systemctl disable wlsnodemgr p6eppm - Restart the service, by running:
sudo
systemctl restart wlsnodemgr p6eppm
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
Last Published Monday, November 4, 2024