svn commit: r305780 - in head/net: haproxy-devel/files haproxy/files

Dmitry Sivachenko demon at FreeBSD.org
Fri Oct 12 14:01:05 UTC 2012


Author: demon
Date: Fri Oct 12 14:01:04 2012
New Revision: 305780
URL: http://svn.freebsd.org/changeset/ports/305780

Log:
  Use 'configtest' command to test config file to be consistent with apache,
  nagios and others.  Do not invent yet another wheel.
  
  Feature safe: yes

Modified:
  head/net/haproxy-devel/files/haproxy.in   (contents, props changed)
  head/net/haproxy/files/haproxy.in   (contents, props changed)

Modified: head/net/haproxy-devel/files/haproxy.in
==============================================================================
--- head/net/haproxy-devel/files/haproxy.in	Fri Oct 12 13:57:26 2012	(r305779)
+++ head/net/haproxy-devel/files/haproxy.in	Fri Oct 12 14:01:04 2012	(r305780)
@@ -30,7 +30,7 @@
 # reload	- hot-reconfig using "-sf" option (active sessions kept)
 # forcereload	- hot-reconfig using "-st" option (active sessions killed)
 # restart	- equiv to "stop" then "start"
-# checkconfig	- checks configuration file defined in haproxy_config
+# configtest	- checks configuration file defined in haproxy_config
 #
 #######
 
@@ -51,10 +51,10 @@ load_rc_config $name
 pidfile=${haproxy_pidfile}
 required_files=${haproxy_config}
 
-# Commands: start, stop, restart, reload, checkconfig
-extra_commands="reload checkconfig"
+# Commands: start, stop, restart, reload, configtest
+extra_commands="reload configtest"
 
-checkconfig_cmd="haproxy_checkconfig"
+configtest_cmd="haproxy_checkconfig"
 reload_cmd="haproxy_reload"
 
 haproxy_reload()

Modified: head/net/haproxy/files/haproxy.in
==============================================================================
--- head/net/haproxy/files/haproxy.in	Fri Oct 12 13:57:26 2012	(r305779)
+++ head/net/haproxy/files/haproxy.in	Fri Oct 12 14:01:04 2012	(r305780)
@@ -30,7 +30,7 @@
 # reload	- hot-reconfig using "-sf" option (active sessions kept)
 # forcereload	- hot-reconfig using "-st" option (active sessions killed)
 # restart	- equiv to "stop" then "start"
-# checkconfig	- checks configuration file defined in haproxy_config
+# configtest	- checks configuration file defined in haproxy_config
 #
 #######
 
@@ -51,10 +51,10 @@ load_rc_config $name
 pidfile=${haproxy_pidfile}
 required_files=${haproxy_config}
 
-# Commands: start, stop, restart, reload, checkconfig
-extra_commands="reload checkconfig"
+# Commands: start, stop, restart, reload, configtest
+extra_commands="reload configtest"
 
-checkconfig_cmd="haproxy_checkconfig"
+configtest_cmd="haproxy_checkconfig"
 reload_cmd="haproxy_reload"
 
 haproxy_reload()


More information about the svn-ports-all mailing list