mirror of https://github.com/CrimsonTome/tldr.git
add systemctl.md
parent
3082d8c406
commit
2e50ef9e53
|
@ -0,0 +1,23 @@
|
|||
# systemctl
|
||||
|
||||
> Control the systemd system and service manager
|
||||
|
||||
- List failed units
|
||||
|
||||
`systemctl --failed`
|
||||
|
||||
- Start/Stop/Restart a service
|
||||
|
||||
`systemctl start/stop/restart {{unit}}`
|
||||
|
||||
- Show the status of a unit
|
||||
|
||||
`systemctl status {{unit}}`
|
||||
|
||||
- Enable/Disable a unit to be started on bootup
|
||||
|
||||
`systemctl enable/disable {{unit}}`
|
||||
|
||||
- Reload systemd, scanning for new or changed units
|
||||
|
||||
`systemctl daemon-reload`
|
Loading…
Reference in New Issue