service
Manage services by running init scripts. The full script path should be omitted (
/etc/init.d/is assumed). More information: https://manned.org/service.
- List the name and status of all services:
service --status-all
- Start/Stop/Restart/Reload service (start/stop should always be available):
service
- Do a full restart (runs script twice with start and stop):
service --full-restart
- Show the current status of a service:
service status
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
