Linux: SystemD

From RHS Wiki
Revision as of 23:05, 7 March 2018 by Rafahsolis (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  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