mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-05 22:53:34 +02:00
service: add page
This commit is contained in:
parent
aa6cb04e10
commit
7bf5a9a5f3
1 changed files with 20 additions and 0 deletions
20
pages/linux/service.md
Normal file
20
pages/linux/service.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# service
|
||||||
|
|
||||||
|
> Manage services by running init scripts.
|
||||||
|
> The full script path should be omitted.
|
||||||
|
|
||||||
|
- Start/Stop/Restart/Reload service (start/stop should always be available):
|
||||||
|
|
||||||
|
`service {{init_script}} start/stop/restart/reload`
|
||||||
|
|
||||||
|
- Do a full restart (runs script twice with start and stop):
|
||||||
|
|
||||||
|
`service {{init_script}} --full-restart`
|
||||||
|
|
||||||
|
- Show the current status of a service:
|
||||||
|
|
||||||
|
`service {{init_script}} status`
|
||||||
|
|
||||||
|
- List the status of all services:
|
||||||
|
|
||||||
|
`service --status-all`
|
Loading…
Add table
Reference in a new issue