mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* bluetoothd: update on command path * bspwm: update whole translation and all of its commands * btrfs: update command order accordingly to styleguide * dunstify: last example was refering to another command * flatpak: - update description's verbs tenses to match styleguide - remove command - update app's names on commands * lsblk: update commands' arguments * pi: update commands order to match the styleguide * poweroff: fix duplicated parameter * systemctl: - update commands' descriptions - add new commands --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
36 lines
995 B
Markdown
36 lines
995 B
Markdown
# systemctl
|
|
|
|
> Controla o sistema systemd e o gerenciador de serviços.
|
|
> Mais informações: <https://www.freedesktop.org/software/systemd/man/systemctl.html>.
|
|
|
|
- Mostra todos os serviços em execução:
|
|
|
|
`systemctl status`
|
|
|
|
- Lista unidades com falha:
|
|
|
|
`systemctl --failed`
|
|
|
|
- Inicia/Para/Reinicia/Recarrega o estado um serviço:
|
|
|
|
`systemctl {{start|stop|restart|reload}} {{unidade}}`
|
|
|
|
- Ativa/Desativa uma unidade a ser iniciada na inicialização:
|
|
|
|
`systemctl {{enable|disable}} {{unidade}}`
|
|
|
|
- Recarrega o systemd, verificando por unidades novas ou alteradas:
|
|
|
|
`systemctl daemon-reload`
|
|
|
|
- Verifica se uma unidade está ativada/ativa/em falha:
|
|
|
|
`systemctl {{is-active|is-enabled|isfailed}} {{unidade}}`
|
|
|
|
- Lista todos as unidades de serviço/socket/auto-montável filtrando por estado executando/falhou:
|
|
|
|
`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}`
|
|
|
|
- Mostra o conteúdo e o caminho absoluto do arquivo de uma unidade:
|
|
|
|
`systemctl cat {{unidade}}`
|