summaryrefslogtreecommitdiffstats
path: root/mysql.init
diff options
context:
space:
mode:
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
;;