aboutsummaryrefslogtreecommitdiff
path: root/net/haproxy
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2012-06-05 17:45:41 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2012-06-05 17:45:41 +0000
commit0cf5d27d312bb5898eaf3c701bcf4f449414a7ff (patch)
tree26875c80a6507e1eeb53f996c65dc05fd6dc24bc /net/haproxy
parent421984c9cec338c42ac9b6c0af0ce77ca29f3f7a (diff)
downloadports-0cf5d27d312bb5898eaf3c701bcf4f449414a7ff.tar.gz
ports-0cf5d27d312bb5898eaf3c701bcf4f449414a7ff.zip
Notes
Diffstat (limited to 'net/haproxy')
-rw-r--r--net/haproxy/files/haproxy.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/net/haproxy/files/haproxy.in b/net/haproxy/files/haproxy.in
index 2ee0406145cf..2076db94911e 100644
--- a/net/haproxy/files/haproxy.in
+++ b/net/haproxy/files/haproxy.in
@@ -1,7 +1,10 @@
#!/bin/sh
+#
+# $FreeBSD$
+#
# PROVIDE: haproxy
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON LOGIN
# KEYWORD: shutdown
#######
@@ -59,8 +62,7 @@ haproxy_reload()
# Check configuration file quietly first
${command} -q -c -f ${haproxy_config}
if [ $? -ne 0 ]; then
- echo "Error found in ${haproxy_config} - not reloading current process!"
- return 1
+ err 1 "Error found in ${haproxy_config} - not reloading current process!"
fi
rc_pid=$(check_pidfile ${haproxy_pidfile} ${command})
if [ $rc_pid ]; then
@@ -70,8 +72,7 @@ haproxy_reload()
${command} ${haproxy_flags} -sf ${rc_pid}
fi
else
- echo "No process found. Maybe $command isn't running?"
- return 1
+ err 1 "No process found. Maybe $command isn't running?"
fi
}