Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemctl: update page #12748

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions pages/linux/systemctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@

`systemctl --failed`

- Start/Stop/Restart/Reload a service:
- Start/Stop/Restart/Reload/Show the status a service:

`systemctl {{start|stop|restart|reload}} {{unit}}`

- Show the status of a unit:

`systemctl status {{unit}}`
`systemctl {{start|stop|restart|reload|status}} {{unit}}`

- Enable/Disable a unit to be started on bootup:

`systemctl {{enable|disable}} {{unit}}`

- Mask/Unmask a unit to prevent enablement and manual activation:
- Reload systemd, scan for new or changed units:

`systemctl daemon-reload`

`systemctl {{mask|unmask}} {{unit}}`
- Check if a unit is active/enabled/failed:
cyqsimon marked this conversation as resolved.
Show resolved Hide resolved

- Reload systemd, scanning for new or changed units:
`systemctl {{is-active|is-enabled|is-failed}} {{unit}}`

`systemctl daemon-reload`
- List all service/socket/automount units filtering by running/failed state:

`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}`

- Check if a unit is enabled:
- Show the contents & absolute path of a unit file:

`systemctl is-enabled {{unit}}`
`systemctl cat {{unit}}`
vanvuvuong marked this conversation as resolved.
Show resolved Hide resolved