[packages/apcupsd] rc-script: make status return something related to status

glen glen at pld-linux.org
Thu Jan 30 21:39:26 CET 2014


commit 4ffe5847eb4e714af139589c882267cdba1f425f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jan 30 22:39:22 2014 +0200

    rc-script: make status return something related to status

 apcupsd.init | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/apcupsd.init b/apcupsd.init
old mode 100644
new mode 100755
index dca9d8d..5fb4de0
--- a/apcupsd.init
+++ b/apcupsd.init
@@ -98,6 +98,7 @@ case "$1" in
 	;;
   status)
 	/usr/sbin/apcaccess status
+	RETVAL=$?
 	;;
   *)
 	msg_usage "$0 {start|stop|restart|try-restart|force-reload|powerdown|status}"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apcupsd.git/commitdiff/4ffe5847eb4e714af139589c882267cdba1f425f



More information about the pld-cvs-commit mailing list