Now that is a cool idea.. Thanks Bryan ;-)
-AJ
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.