diff options
Diffstat (limited to 'dev-db/mysql-proxy/files/mysql-proxy.initd')
| -rwxr-xr-x | dev-db/mysql-proxy/files/mysql-proxy.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-db/mysql-proxy/files/mysql-proxy.initd b/dev-db/mysql-proxy/files/mysql-proxy.initd new file mode 100755 index 000000000000..fbbc8df72d97 --- /dev/null +++ b/dev-db/mysql-proxy/files/mysql-proxy.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting MySQL Proxy" + start-stop-daemon --start --quiet \ + --exec /usr/bin/mysql-proxy \ + -- --daemon --pid-file="${PIDFILE}" ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping MySQL Proxy" + start-stop-daemon --stop --quiet \ + --pidfile "${PIDFILE}" + eend $? +} |
