To ensure that your Liferay Tomcat server starts automatically when your Ubuntu server boots, you can use the @reboot
attribute in the crontab. Here’s how you can set it up:
- Open the terminal on your Ubuntu server.
- Enter the crontab configuration with the following command:
sudo crontab -e
- Scroll to the end of the file and add the following line:
@reboot /
‘Path To Tomcat folder
‘/bin/startup.sh
This line schedules thestartup.sh
script to run at every reboot. - Save the file and exit the editor.
Now, every time your Ubuntu server restarts, the Liferay Tomcat server will start automatically, ensuring that your web applications are always available.