mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 22:42:08 +02:00
service: move --status-all example (#4398)
This commit is contained in:
parent
d22ac70ab4
commit
6601592098
1 changed files with 7 additions and 7 deletions
|
@ -3,18 +3,18 @@
|
||||||
> Manage services by running init scripts.
|
> Manage services by running init scripts.
|
||||||
> The full script path should be omitted (/etc/init.d/ is assumed).
|
> The full script path should be omitted (/etc/init.d/ is assumed).
|
||||||
|
|
||||||
|
- List the name and status of all services:
|
||||||
|
|
||||||
|
`service --status-all`
|
||||||
|
|
||||||
- Start/Stop/Restart/Reload service (start/stop should always be available):
|
- Start/Stop/Restart/Reload service (start/stop should always be available):
|
||||||
|
|
||||||
`service {{init_script}} {{start|stop|restart|reload}}`
|
`service {{service_name}} {{start|stop|restart|reload}}`
|
||||||
|
|
||||||
- Do a full restart (runs script twice with start and stop):
|
- Do a full restart (runs script twice with start and stop):
|
||||||
|
|
||||||
`service {{init_script}} --full-restart`
|
`service {{service_name}} --full-restart`
|
||||||
|
|
||||||
- Show the current status of a service:
|
- Show the current status of a service:
|
||||||
|
|
||||||
`service {{init_script}} status`
|
`service {{service_name}} status`
|
||||||
|
|
||||||
- List the status of all services:
|
|
||||||
|
|
||||||
`service --status-all`
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue