Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/mysql-proxy/files: mysql-proxy.cnf mysql-proxy.confd-0.8.0-r1 mysql-proxy.initd
Date: Sat, 29 May 2010 20:45:10
Message-Id: 20100529204504.B7C6B2CF39@corvid.gentoo.org
1 robbat2 10/05/29 20:45:04
2
3 Modified: mysql-proxy.initd
4 Added: mysql-proxy.cnf mysql-proxy.confd-0.8.0-r1
5 Log:
6 Include a config file for easier usage of mysql-proxy. Upstream moved the binary as well, so update init.d to reflect new /usr/bin/ location.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 dev-db/mysql-proxy/files/mysql-proxy.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.initd?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.initd?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.initd?r1=1.1&r2=1.2
15
16 Index: mysql-proxy.initd
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.initd,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -p -w -b -B -u -u -r1.1 -r1.2
22 --- mysql-proxy.initd 21 Nov 2009 13:52:45 -0000 1.1
23 +++ mysql-proxy.initd 29 May 2010 20:45:04 -0000 1.2
24 @@ -1,7 +1,7 @@
25 #!/sbin/runscript
26 # Copyright 1999-2007 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.initd,v 1.1 2009/11/21 13:52:45 wschlich Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.initd,v 1.2 2010/05/29 20:45:04 robbat2 Exp $
30
31 depend() {
32 need net
33 @@ -10,7 +10,7 @@ depend() {
34 start() {
35 ebegin "Starting MySQL Proxy"
36 start-stop-daemon --start --quiet \
37 - --exec /usr/sbin/mysql-proxy \
38 + --exec /usr/bin/mysql-proxy \
39 -- --daemon --pid-file="${PIDFILE}" ${OPTS}
40 eend $?
41 }
42
43
44
45 1.1 dev-db/mysql-proxy/files/mysql-proxy.cnf
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.cnf?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.cnf?rev=1.1&content-type=text/plain
49
50 Index: mysql-proxy.cnf
51 ===================================================================
52 # MySQL Proxy's configuration file (mysql-proxy.cnf)
53 # This file must be 0660 or more restrictive
54 # otherwise mysql-proxy will refuse to load
55 [mysql-proxy]
56 #basedir = ...
57 #daemon = true
58 #defaults-file = ...
59 #event-threads = ...
60 keepalive = true
61 log-backtrace-on-crash = true
62 log-file = /var/log/mysql/mysql-proxy.log
63 log-level = warning
64 log-use-syslog = true
65 #lua-cpath = ...
66 #lua-path = ...
67 #max-open-files = ...
68 pid-file = /var/run/mysql-proxy.pid
69 #plugin-dir = ...
70 #plugins = admin,proxy,debug,replicant
71 #plugins = admin,proxy
72 plugins = proxy
73 #user = ...
74
75 # module: admin
76 admin-address = 127.0.0.1:4041
77 #admin-lua-script = ...
78 #admin-password = ...
79 #admin-username = ...
80
81 # module: proxy
82 #no-proxy = false
83 proxy-address = 127.0.0.1:4040
84 proxy-backend-addresses = 127.0.0.1:3306
85 proxy-fix-bug-25371 = false
86 #proxy-lua-script = ...
87 #proxy-pool-no-change-user = ...
88 #proxy-read-only-backend-addresses = ...
89 proxy-skip-profiling = false
90
91 # module: replicant
92 #replicant-master-address = ...
93 #replicant-username = ...
94 #replicant-password = ...
95 #replicant-read-binlogs = ...
96
97 # module: debug
98 debug-address = 127.0.0.1:4043
99
100
101
102 1.1 dev-db/mysql-proxy/files/mysql-proxy.confd-0.8.0-r1
103
104 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.confd-0.8.0-r1?rev=1.1&view=markup
105 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-proxy/files/mysql-proxy.confd-0.8.0-r1?rev=1.1&content-type=text/plain
106
107 Index: mysql-proxy.confd-0.8.0-r1
108 ===================================================================
109 # /etc/conf.d/mysql-proxy: config file for /etc/init.d/mysql-proxy
110
111 # location of pidfile
112 PIDFILE="/var/run/mysql-proxy.pid"
113
114 # general options for mysql-proxy
115 # do NOT specify --daemon or --pid-file=... here!
116 OPTS="--defaults-file=/etc/mysql/mysql-proxy.cnf"
117
118 # if you want mysql-proxy to depend on mysql, enable this:
119 #RC_NEED="mysql" # baselayout-1
120 #rc_need="mysql" # baselayout-2/OpenRC