diff options
author | ak <ak@FreeBSD.org> | 2012-06-05 19:12:34 +0800 |
---|---|---|
committer | ak <ak@FreeBSD.org> | 2012-06-05 19:12:34 +0800 |
commit | ede9bbc272a37fa0f9dc16b7c106bb7ffe6f8c41 (patch) | |
tree | 6a401addf5e5133de09f059557cc6d95195c2f2b /net/haproxy-devel | |
parent | 49e0bdaa391fa64494bd24dbe5f612493474fae6 (diff) | |
download | freebsd-ports-gnome-ede9bbc272a37fa0f9dc16b7c106bb7ffe6f8c41.tar.gz freebsd-ports-gnome-ede9bbc272a37fa0f9dc16b7c106bb7ffe6f8c41.tar.zst freebsd-ports-gnome-ede9bbc272a37fa0f9dc16b7c106bb7ffe6f8c41.zip |
- Add return codes to rc.d script
PR: ports/168450
Submitted by: Boris Kochergin <spawk@acm.poly.edu>
Approved by: demon (maintainer), eadler, itetcu (mentors, implicit)
Diffstat (limited to 'net/haproxy-devel')
-rw-r--r-- | net/haproxy-devel/files/haproxy.in | 3 |
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 } |