~negronjl/charms/precise/mysql/mysql-file-permissions

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Marco Ceppi
  • Date: 2014-02-15 23:08:38 UTC
  • mfrom: (112.1.1 mysql)
  • Revision ID: marco@ceppi.net-20140215230838-eedmwwz8rot0sd41
[marcoceppi] Better assurances that MySQL will restart

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
#
221
221
# * Fine Tuning
222
222
#
223
 
key_buffer              = %(key-buffer)s
 
223
key_buffer_size         = %(key-buffer)s
224
224
max_allowed_packet      = 16M
225
225
# This replaces the startup script and checks MyISAM tables if needed
226
226
# the first time they are touched
292
292
#no-auto-rehash # faster start of mysql but no tab completition
293
293
 
294
294
[isamchk]
295
 
key_buffer              = 16M
 
295
key_buffer_size         = 16M
296
296
 
297
297
#
298
298
# * IMPORTANT: Additional settings that can override those from this file!
350
350
 
351
351
if need_restart:
352
352
    try:
353
 
        check_call(['service','mysql','stop'])
 
353
        check_call(['service', 'mysql', 'restart'])
354
354
    except CalledProcessError:
355
 
        pass
356
 
    check_call(['service','mysql','start'])
 
355
        check_call(['juju-log', '-l', 'INFO', 'Restart failed, trying again'])
 
356
        check_call(['service', 'mysql', 'restart'])