linux_wiki:start_and_stop_services_and_configure_services_to_start_automatically_at_boot

Start And Stop Services And Configure Services To Start Automatically At Boot

General Information

Service control and automatic starting.


Status

systemctl status httpd


Start

systemctl start httpd

Enable at boot (multi-user.target)

systemctl enable httpd


Disable at boot

systemctl disable httpd

Check if service enabled on startup

systemctl is-enabled httpd
systemctl list-unit-files --type=service | grep httpd


Check to see if httpd will start in the multi-user target

systemctl list-dependencies multi-user.target | grep httpd


View all services that will start with multi-user.target

ls /etc/systemd/system/multi-user.target.wants

  • linux_wiki/start_and_stop_services_and_configure_services_to_start_automatically_at_boot.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)