Difference between revisions of "Linux: SystemD"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "# List all running services sytemctl # Start/stop or enable/disable services systemctl start foo.service systemctl stop foo.service systemctl restart foo.service systemct...")
(No difference)

Revision as of 23:05, 7 March 2018

  1. List all running services
sytemctl
  1. Start/stop or enable/disable services
systemctl start foo.service
systemctl stop foo.service
systemctl restart foo.service
systemctl status foo.service
systemctl enable foo.service
systemctl disable foo.service
  1. Check if service is enabled
systemctl is-enabled foo.service; echo $?

Source: Useful SystemD Commands