From 527b3ef501b83ef4d98a59bd654de9b3a23b9bb9 Mon Sep 17 00:00:00 2001 From: "Wayne E. Seguin" Date: Thu, 15 May 2014 11:08:13 -0400 Subject: [PATCH] Added clarifying comments around process API. --- core/api/shell/process/functions | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/api/shell/process/functions b/core/api/shell/process/functions index e3fdda71..06a1b75a 100644 --- a/core/api/shell/process/functions +++ b/core/api/shell/process/functions @@ -4,8 +4,18 @@ # SM Process API # # process start name timeout command [params...] +# Where timeout in start is the timeout to watch the process to ensure the +# process stays running and then write a pidfile or return error if process +# is no longer running. +# # process stop name timeout +# Timeout in stop is the amount of time in seconds to wait for a process to +# stop gracefully before sending SIGKILL. +# # process is running name +# returns 0 if the named process (via process start name ) is running and +# returns 1 if the process is not found running. +# # process restart name timeout_start timeout_stop command [params...] # process status # process lock