Customizing the Portal Dedicated tmp location
Before changing the Portal tmp location, create the directory with appropriate permissions:
sudo mkdir -p /waratek/tmp
sudo chmod 755 /waratek/tmp
sudo chown <portal_user>: /waratek/tmp
Note: Replace <portal_user> with the user that runs the Portal service (check with sudo systemctl status portal).
Now you must edit the service script and make the following changes. Add the following to the ExecStart line in the Portal service script (location found by using sudo systemctl status portal)
-Djna.tmpdir=/waratek/tmp
Reload the systemctl daemon and restart the Portal service
sudo systemctl daemon-reload
sudo systemctl restart portal
Note: On SELinux if the Portal service fails to start after making these changes, SELinux may be blocking the service. Check the service status with sudo systemctl status portal. To temporarily disable SELinux for troubleshooting, run sudo setenforce 0. For production environments, configure SELinux policies appropriately to allow Portal startup with the custom tmp directory.