Bash - Service - Auto-start on reboot

Check if Service is Running

For example, apache2 and httpd.

sudo systemctl status apache2

Check if Service is Auto-Started on Reboot

sudo systemctl is-enabled apache2

Enable Auto-Start of Service on Reboot

sudo systemctl enable apache2

Disable Auto-Start of Service on Reboot

sudo systemctl disable apache2