service: add page

coverage
fuerbringer 2016-11-15 12:18:32 +01:00 committed by Agniva De Sarker
parent aa6cb04e10
commit 7bf5a9a5f3
1 changed files with 20 additions and 0 deletions

20
pages/linux/service.md Normal file
View 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`