1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 23:17:58 +01:00
tldr/pages/linux/systemctl.md

37 lines
736 B
Markdown
Raw Normal View History

2014-02-25 03:06:23 +01:00
# systemctl
> Control the systemd system and service manager.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html>.
2014-02-25 03:06:23 +01:00
- Show all running services:
`systemctl status`
- List failed units:
2014-02-25 03:06:23 +01:00
`systemctl --failed`
- Start/Stop/Restart/Reload a service:
2014-02-25 03:06:23 +01:00
`systemctl {{start|stop|restart|reload}} {{unit}}`
2014-02-25 03:06:23 +01:00
- Show the status of a unit:
2014-02-25 03:06:23 +01:00
`systemctl status {{unit}}`
- Enable/Disable a unit to be started on bootup:
2014-02-25 03:06:23 +01:00
`systemctl {{enable|disable}} {{unit}}`
2014-02-25 03:06:23 +01:00
- Mask/Unmask a unit to prevent enablement and manual activation:
`systemctl {{mask|unmask}} {{unit}}`
- Reload systemd, scanning for new or changed units:
2014-02-25 03:06:23 +01:00
`systemctl daemon-reload`
- Check if a unit is enabled:
`systemctl is-enabled {{unit}}`