[chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: MySQL Cookbook


Chronological Thread 
  • From: AJ Christensen < >
  • To: chef < >
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: MySQL Cookbook
  • Date: Thu, 28 Mar 2013 08:03:24 +1300

Now that is a cool idea.. Thanks Bryan ;-)

-AJ

On 28/03/2013 6:15 AM, "Bryan McLellan" < "> > wrote:
On Tue, Mar 26, 2013 at 7:10 PM, AJ Christensen < "> > wrote:
> One day I suppose we'll be able to install mysql or mariadb without
> starting the service or shipping potentially broken config; it's so
> hard to reverse the changes once it has started up, nuke data etc.
> Yawn.

On recent Ubuntu releases that use upstart, if you create
"/etc/init/mysql.override" with the word "manual" in it before you
install the package (tested on 12.10 quantal with
mysql-server-5.5=5.5.29-0ubuntu0.12.10.1) then the service will not
start automatically when the package is installed (or on startup).

On Debian, if you create "/usr/sbin/policy-rc.d" with these contents,
it will prevent mysql from starting on installation (tested on 6.0.6
squeeze with mysql-server-5.1=5.1.66-0+squeeze1

=======
#!/bin/sh

if [ "x$1" = "xmysql" ] && [ "x$2" = "xstart" ]; then
  echo "Not starting mysql server due to policy" >&2
  exit 101
fi
=======

Bryan



Archive powered by MHonArc 2.6.16.

§