Commit ddbd1c92 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Make our rc.d scripts play properly on FreeBSD6, which has a new

wildly obfuscated rc.d mechanism.
parent e4effbef
#!/bin/sh
# PROVIDE: mysql-client
# REQUIRE: NETWORKING SERVERS ldconfig
# BEFORE: mysql apache
# KEYWORD: shutdown
case "$1" in
start)
start|faststart)
/sbin/ldconfig -m /usr/local/lib/mysql
;;
stop)
......
......@@ -3,8 +3,13 @@
# This is the version for ops. My apologies for the naming sillyness.
#
# PROVIDE: mysql
# REQUIRE: NETWORKING SERVERS mysql-client
# BEFORE: DAEMON
# KEYWORD: shutdown
case "$1" in
start)
start|faststart)
if [ -x /usr/local/bin/safe_mysqld ]; then
/usr/local/bin/safe_mysqld --pid-file=/var/run/mysqld.pid --skip-networking --user=mysql --log-long-format --log=@prefix@/log/mysql/base --log-bin=@prefix@/log/mysql/update --log-slow-queries=@prefix@/log/mysql/slowqueries -O max_connections=300 -O long_query_time=2 -O key_buffer=32M -O table_cache=256 -O sort_buffer=4M -O record_buffer=1M > /dev/null 2>&1 &
echo -n ' mysqld'
......
#!/bin/sh
# PROVIDE: mysql
# REQUIRE: NETWORKING SERVERS mysql-client
# BEFORE: DAEMON
# KEYWORD: shutdown
case "$1" in
start)
start|faststart)
if [ -x /usr/local/bin/safe_mysqld ]; then
/usr/local/bin/safe_mysqld --pid-file=/var/run/mysqld.pid --skip-grant-tables --skip-networking --user=mysql --log-long-format --log=@prefix@/log/mysql/base --log-bin=@prefix@/log/mysql/update --log-slow-queries=@prefix@/log/mysql/slowqueries -O max_connections=300 -O long_query_time=2 -O key_buffer=32M -O table_cache=256 -O sort_buffer=4M -O record_buffer=1M > /dev/null 2>&1 &
echo -n ' mysqld'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment