chr4-cookbooks / mysqld

chef cookbook for installing and configuring mysql, only changing explicitly given options from the systems defaults
4 stars 11 forks source link

restart mysql immediately when my.cnf updated #4

Closed whitekid closed 9 years ago

whitekid commented 9 years ago

When I write recipe as below sequence

  1. install mysql-server with include mysqld cookbook
  2. create database with database cookbook

When create database. my.cnf was updated but configuration was not reload. so that created database was not affected update configuration(eg. character-set-server=utf8 option). : restart action executed after create database

so :immediately option needed in service definition.

chr4 commented 9 years ago

LGTM, thank you for your contribution!