From 7bf5a9a5f337b9bdd609e80023b926fbbd71ca74 Mon Sep 17 00:00:00 2001 From: fuerbringer Date: Tue, 15 Nov 2016 12:18:32 +0100 Subject: [PATCH] service: add page --- pages/linux/service.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/service.md diff --git a/pages/linux/service.md b/pages/linux/service.md new file mode 100644 index 000000000..aab76fad6 --- /dev/null +++ b/pages/linux/service.md @@ -0,0 +1,20 @@ +# 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` \ No newline at end of file