Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Tuesday, January 23, 2018

How to start service automatically after reboot + Linux

How to start service automatically after reboot + Linux

Many time we have to restart few services after reboot. So we manually login to the server and then start the service manually every time the server reboot.

To avoid this manual intervention, we can run below commands to run any service (eg. Httpd) automatically after reboot.

This we can called as simple kind of automation :)

Commands:

  1. #systemctl status httpd à to checke status of httpd service. The status disabled shows that the service is not configured to start on boot.
  1. #systemctl enable httpd  - to enable httpd service to start after boot


  1. #systemctl status httpd -  Recheck the httpd service, The status enabled will start service after boot.









Note: Above commands are applicable in RHEL 7 & higher version.

Regards,

Kirann Jadhav

No comments:

Post a Comment