aboutsummaryrefslogtreecommitdiff
path: root/net/haproxy-devel
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2012-06-05 11:12:34 +0000
committerAlex Kozlov <ak@FreeBSD.org>2012-06-05 11:12:34 +0000
commit9d207bcffcf3306aca9b62e7455f0f7a75b9b76a (patch)
treeb9dab6160bd1dc53d9d28856727da75da9d2ee23 /net/haproxy-devel
parent1d801e61abccd3c46bdee4e86c7e86aceed09dae (diff)
downloadports-9d207bcffcf3306aca9b62e7455f0f7a75b9b76a.tar.gz
ports-9d207bcffcf3306aca9b62e7455f0f7a75b9b76a.zip
Notes
Diffstat (limited to 'net/haproxy-devel')
-rw-r--r--net/haproxy-devel/files/haproxy.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/haproxy-devel/files/haproxy.in b/net/haproxy-devel/files/haproxy.in
index fc79f7868213..2ee0406145cf 100644
--- a/net/haproxy-devel/files/haproxy.in
+++ b/net/haproxy-devel/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
}