To enable a service to run on startup in Linux

For Red Hat / Fedora/ Centos based OS, you need to type, for example for tomcat:

sudo systemctl enable tomcat

you can start the service by typing:

sudo systemctl start tomcat

or restarting:

sudo systemctl restart tomcat

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.