projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update mpfr patch and configure options
[hvlinux.git]
/
stage3
/
bootscripts
/
mysql
diff --git
a/stage3/bootscripts/mysql
b/stage3/bootscripts/mysql
index
3c5f935
..
d261939
100755
(executable)
--- a/
stage3/bootscripts/mysql
+++ b/
stage3/bootscripts/mysql
@@
-14,15
+14,15
@@
mysql_start()
if [ -f "$pid_file" ]; then
if /bin/ps p `cat $pid_file` | grep mysqld >/dev/null; then
# Warning, running...
if [ -f "$pid_file" ]; then
if /bin/ps p `cat $pid_file` | grep mysqld >/dev/null; then
# Warning, running...
- return
0
+ return
${EXIT_CODE_WARNING}
else
rm -f $pid_file
if [ -f $pid_file ]; then
else
rm -f $pid_file
if [ -f $pid_file ]; then
- return
1
+ return
${EXIT_CODE_FAILURE}
fi
fi
fi
fi
fi
fi
-
+
/usr/bin/mysqld_safe --user=mysql 2>&1 >/dev/null &
return $?
}
/usr/bin/mysqld_safe --user=mysql 2>&1 >/dev/null &
return $?
}
@@
-39,28
+39,28
@@
mysql_stop()
sleep 1
done
if [ -s $pid_file ]; then
sleep 1
done
if [ -s $pid_file ]; then
- return
1
+ return
${EXIT_CODE_FAILURE}
fi
return 0
else
# print_status warning not_running
fi
return 0
else
# print_status warning not_running
- return
1
+ return
${EXIT_CODE_WARNING}
fi
}
case "$1" in
start)
fi
}
case "$1" in
start)
- cmd_run_log_box "MySQL start" mysql_start
+ cmd_run_log_box
_warn
"MySQL start" mysql_start
;;
;;
-
+
stop)
stop)
- cmd_run_log_box "MySQL stop" mysql_stop
+ cmd_run_log_box
_warn
"MySQL stop" mysql_stop
;;
;;
-
+
reload)
reload)
- cmd_run_log_box "MySQL reload" reloadproc mysqld
+ cmd_run_log_box
_warn
"MySQL reload" reloadproc mysqld
;;
;;
-
+
restart)
$0 stop
sleep 1
restart)
$0 stop
sleep 1
@@
-70,7
+70,7
@@
case "$1" in
status)
statusproc mysqld
;;
status)
statusproc mysqld
;;
-
+
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit ${EXIT_CODE_FAILURE}
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit ${EXIT_CODE_FAILURE}