Revision 13191
Added by Aaron Marcuse-Kubitza over 10 years ago
db.sh | ||
---|---|---|
243 | 243 |
## server admin |
244 | 244 |
|
245 | 245 |
mysql_ctl() # usage: mysql_ctl {start|stop|restart|...} |
246 |
{ echo_func; sudo service mysql "$@"; } |
|
246 |
{ |
|
247 |
echo_func |
|
248 |
pattern='^stop: Unknown instance:' ignore_e=1 ignore_err_msg \ |
|
249 |
sudo service mysql "$@" # ignore errors if not running |
|
250 |
} |
|
247 | 251 |
|
248 | 252 |
mysql_snapshot() # usage: live=1 [from=...] [to=...] mysql_snapshot |
249 | 253 |
{ |
Also available in: Unified diff
bugfix: lib/sh/db.sh: mysql_ctl(): need to ignore errors if not running