Project

General

Profile

« Previous | Next » 

Revision 13191

bugfix: lib/sh/db.sh: mysql_ctl(): need to ignore errors if not running

View differences:

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