systemd - cws-khuntly/WebSphere GitHub Wiki


date: 2025-05-08 13:51:59 created: 2025-05-08 13:51:48 categories:

  • WebSphere / Server Build / Common Configuration

systemd

NOTE: This process will require root access to the server.

Export the profile name variable:

declare -x PROFILE_NAME=XXX

Copy the systemd unit files into the systemd working directory:

cp  /nfs/software/WebSphere/AppServer/systemd/unit-files/[email protected] /etc/systemd/system/[email protected]

cp  /nfs/software/WebSphere/PortalServer/systemd/unit-files/[email protected] /etc/systemd/system/[email protected]

Enable the service:

systemctl enable ibm-was-nodeagent@${PROFILE_NAME}

systemctl enable ibm-was-server@${PROFILE_NAME}

Edit the services:

systemctl edit ibm-was-nodeagent@${PROFILE_NAME}.service

Add the content of  /nfs/software/WebSphere/AppServer/systemd/unit-overrides/ibm-was-nodeagent.conf, modifying the User= line as appropriate for the environment

  • User=wasadm

Edit the services:

systemctl edit ibm-wps-server@${WPS_PROFILE_NAME}.service

Add the content of  /nfs/software/WebSphere/AppServer/systemd/unit-overrides/ibm-was-server.conf, modifying the User= and Environment= lines as appropriate for the environment

  • User=wasadm
  • Environment=SERVER=${WAS_SERVER_NAME}

Reload systemd for changes to take effect:

systemctl daemon-reload

⚠️ **GitHub.com Fallback** ⚠️