tldr/pages/linux/systemctl.md

28 lines
515 B
Markdown
Raw Normal View History

2014-02-25 02:06:23 +00:00
# systemctl
> Control the systemd system and service manager.
2014-02-25 02:06:23 +00:00
- List failed units:
2014-02-25 02:06:23 +00:00
`systemctl --failed`
- Start/Stop/Restart/Reload a service:
2014-02-25 02:06:23 +00:00
`systemctl start/stop/restart/reload {{unit}}`
2014-02-25 02:06:23 +00:00
- Show the status of a unit:
2014-02-25 02:06:23 +00:00
`systemctl status {{unit}}`
- Enable/Disable a unit to be started on bootup:
2014-02-25 02:06:23 +00:00
`systemctl enable/disable {{unit}}`
- Mask/Unmask a unit, prevent it to be started on bootup:
`systemctl mask/unmask {{unit}}`
- Reload systemd, scanning for new or changed units:
2014-02-25 02:06:23 +00:00
`systemctl daemon-reload`