summaryrefslogtreecommitdiff
path: root/net/haproxy-devel/files
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-devel/files
parentFix build with giflib 2.4.0. (diff)
Add $FreeBSD$;
Add LOGIN to REQUIRE; replace echo + return with err. Suggested by: dougb
Notes
Notes: svn path=/head/; revision=298498
Diffstat (limited to 'net/haproxy-devel/files')
-rw-r--r--net/haproxy-devel/files/haproxy.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/net/haproxy-devel/files/haproxy.in b/net/haproxy-devel/files/haproxy.in
index 2ee0406145cf..2076db94911e 100644
--- a/net/haproxy-devel/files/haproxy.in
+++ b/net/haproxy-devel/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
}