tldr/pages/linux/service.md

20 lines
465 B
Markdown
Raw Normal View History

2016-11-15 11:18:32 +00:00
# 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`