Systemctl (centos)

  • Enable (load at bootup) systemctl enable servicename
  • Disable (don't load at bootup) systemctl disable servicename
  • Is Enabled? systemctl is-enabled servicename

  • Start systemctl start servicename
  • Stop systemctl stop servicename
  • Status systemctl status servicename
  • Is Active? systemctl is-active servicename

  • List everything systemctl knows about systemctl list-units
  • List all systemctl list-units --all
  • List inactive systemctl list-units --all --state=inactive
  • List active systemctl list-units --all --state=active

https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units

see more