github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/acceptancetests/repository/charms/mysql/hooks/slave-relation-broken (about) 1 #!/bin/sh 2 3 # Kill the replication 4 mysql -uroot -p`cat /var/lib/mysql/mysql.passwd` -e 'STOP SLAVE;' 5 mysql -uroot -p`cat /var/lib/mysql/mysql.passwd` -e 'RESET SLAVE;' 6 # No longer a slave 7 # XXX this may change the server-id .. not sure if thats what we 8 # want! 9 rm /var/lib/juju/i.am.a.slave