mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 06:02:08 +02:00

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
20 lines
510 B
Markdown
20 lines
510 B
Markdown
# service
|
|
|
|
> Manage services by running init scripts.
|
|
> 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):
|
|
|
|
`service {{service_name}} {{start|stop|restart|reload}}`
|
|
|
|
- Do a full restart (runs script twice with start and stop):
|
|
|
|
`service {{service_name}} --full-restart`
|
|
|
|
- Show the current status of a service:
|
|
|
|
`service {{service_name}} status`
|