From 66015920989207570d796ea3af0bd76b01a44bff Mon Sep 17 00:00:00 2001 From: Ray Voice <33094591+Ray6464@users.noreply.github.com> Date: Tue, 6 Oct 2020 23:44:12 +0500 Subject: [PATCH] service: move --status-all example (#4398) --- pages/linux/service.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/linux/service.md b/pages/linux/service.md index 0b8110ab1..db18fbee8 100644 --- a/pages/linux/service.md +++ b/pages/linux/service.md @@ -3,18 +3,18 @@ > 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 {{init_script}} {{start|stop|restart|reload}}` +`service {{service_name}} {{start|stop|restart|reload}}` - Do a full restart (runs script twice with start and stop): -`service {{init_script}} --full-restart` +`service {{service_name}} --full-restart` - Show the current status of a service: -`service {{init_script}} status` - -- List the status of all services: - -`service --status-all` +`service {{service_name}} status`