2016-11-15 11:18:32 +00:00
|
|
|
# service
|
|
|
|
|
|
|
|
> Manage services by running init scripts.
|
2016-11-15 18:48:42 +00:00
|
|
|
> The full script path should be omitted (/etc/init.d/ is assumed).
|
2016-11-15 11:18:32 +00:00
|
|
|
|
|
|
|
- Start/Stop/Restart/Reload service (start/stop should always be available):
|
|
|
|
|
2016-11-15 15:24:22 +00:00
|
|
|
`service {{init_script}} {{start|stop|restart|reload}}`
|
2016-11-15 11:18:32 +00:00
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
2016-11-15 15:24:22 +00:00
|
|
|
`service --status-all`
|