summaryrefslogtreecommitdiffstats
path: root/mysql.init
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-11-10 18:13:56 +0100
committerRemi Collet <fedora@famillecollet.com>2010-11-10 18:13:56 +0100
commit3cbea88e8e54e9af560bfeadf99428bd3fe5544f (patch)
treea63df3617376fff0cceca98188ca48a62acff210 /mysql.init
parenta1e7cdf66b93d2c3891be31cce28b99e1ed2fe02 (diff)
MySQL 5.5.7 RC
Diffstat (limited to 'mysql.init')
-rw-r--r--mysql.init7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql.init b/mysql.init
index 1661f3b..81b1f85 100644
--- a/mysql.init
+++ b/mysql.init
@@ -89,6 +89,10 @@ start(){
fi
chown mysql:mysql "$datadir"
chmod 0755 "$datadir"
+ # If startsos
+ if [ "$1" = "sos" ] ; then
+ exec="$exec --skip-grant-tables --skip-networking"
+ fi
# Pass all the options determined above, to ensure consistent behavior.
# In many cases mysqld_safe would arrive at the same conclusions anyway
# but we need to be sure. (An exception is that we don't force the
@@ -183,6 +187,9 @@ case "$1" in
start)
start
;;
+ startsos)
+ start sos
+ ;;
stop)
stop
;;