From 1d801e61abccd3c46bdee4e86c7e86aceed09dae Mon Sep 17 00:00:00 2001 From: Alex Kozlov Date: Tue, 5 Jun 2012 11:09:16 +0000 Subject: - Add return codes to rc.d script PR: ports/168449 Submitted by: Boris Kochergin Approved by: demon (maintainer), eadler, itetcu (mentors, implicit) --- net/haproxy/files/haproxy.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net/haproxy/files') diff --git a/net/haproxy/files/haproxy.in b/net/haproxy/files/haproxy.in index fc79f7868213..2ee0406145cf 100644 --- a/net/haproxy/files/haproxy.in +++ b/net/haproxy/files/haproxy.in @@ -60,7 +60,7 @@ haproxy_reload() ${command} -q -c -f ${haproxy_config} if [ $? -ne 0 ]; then echo "Error found in ${haproxy_config} - not reloading current process!" - return + return 1 fi rc_pid=$(check_pidfile ${haproxy_pidfile} ${command}) if [ $rc_pid ]; then @@ -71,6 +71,7 @@ haproxy_reload() fi else echo "No process found. Maybe $command isn't running?" + return 1 fi } -- cgit v1.2.3