Date: Thu, 31 Jan 2008 11:53:15 GMT From: "Bartłomiej Syryjczyk" <bartlomiej.syryjczyk@expro.pl> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/120183: Startup script to databases/mysql-proxy Message-ID: <200801311153.m0VBrFRS084631@www.freebsd.org> Resent-Message-ID: <200801311200.m0VC07XR067192@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 120183 >Category: ports >Synopsis: Startup script to databases/mysql-proxy >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jan 31 12:00:07 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Bartłomiej Syryjczyk >Release: 5.4-RELEASE-p11 >Organization: Expro Sp. z o. o. >Environment: FreeBSD <hostname> 5.4-RELEASE-p11 FreeBSD 5.4-RELEASE-p11 #4: Thu Feb 2 10:21:20 CET 2006 root@<hostname>:/usr/obj/usr/src/sys/<hostname> i386 >Description: Startup script to mysql-proxy >How-To-Repeat: See above >Fix: Patch attached with submission follows: #!/bin/sh # # $FreeBSD: ports/databases/mysql-proxy/files/mysql-proxy.sh.in,v 1.0 2008/01/30 16:00:00 guzik Exp $ # # PROVIDE: mysql-proxy # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable mysql-proxy: # mysql_proxy_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL Proxy. # mysql_proxy_admin_address (str): Set to ":4041" by default. # Set listening address:port of internal admin-server. # mysql_proxy_address (str): Set to ":4040" by default. # Set listening address:port of the proxy-server. # mysql_proxy_backend_addresses (str): Set to "127.0.0.1:3306" by default. # Set address:port of the remote backend-servers # mysql_proxy_pid_file (path): Default to "/var/run/mysql-proxy.pid" # Set PID file in case we are started as daemon # mysql_proxy_args (str): Default to "" # Custom additional arguments to be passed to mysql-proxy # --proxy-read-only-backend-addresses=<host:port> - address:port of the remote slave-server # --proxy-skip-profiling - disables profiling of queries (default: enabled) # --proxy-fix-bug-25371 - fix bug #25371 (mysqld > 5.1.12) for older libmysql versions # --proxy-lua-script=<file> - filename of the lua script # --no-proxy - don't start proxy-server . /etc/rc.subr name="mysql_proxy" rcvar=`set_rcvar` load_rc_config $name : ${mysql_proxy_enable="NO"} : ${mysql_proxy_admin_address=":4041"} : ${mysql_proxy_address=":4040"} : ${mysql_proxy_backend_addresses="127.0.0.1:3306"} : ${mysql_proxy_pid_file="/var/run/mysql-proxy.pid"} pidfile="${mysql_proxy_pid_file}" command="/usr/local/sbin/mysql-proxy" command_args="--admin-address=${mysql_proxy_admin_address} --proxy-address=${mysql_proxy_address} --proxy-backend-addresses=${mysql_proxy_backend_addresses} ${mysql_proxy_args} --daemon --pid-file=${mysql_proxy_pid_file}" procname="/usr/local/sbin/mysql-proxy" run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801311153.m0VBrFRS084631>