From dd588e12572173e8c69f0af24a0adb9781f1e8dd Mon Sep 17 00:00:00 2001 From: Curt Micol Date: Tue, 29 Jan 2013 14:27:08 -0500 Subject: [PATCH] Retvals matter for status commands This adds return values for the 'status' command so that monitoring services or configuration management knows to start the service. --- examples/remote_syslog.init.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/remote_syslog.init.d b/examples/remote_syslog.init.d index 382ee20..1e05483 100755 --- a/examples/remote_syslog.init.d +++ b/examples/remote_syslog.init.d @@ -52,8 +52,10 @@ status(){ if (is_running); then echo "found" + return 0 else echo "not found" + return 1 fi }