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