Comment 13 for bug 1152764

Revision history for this message
Henrik Ingo (hingo) wrote :

Fred, what is it that doesn't work for you on Ubuntu/Debian?

Let's take as base the init script from PXC for Debian: bazaar.launchpad.net/~percona-core/percona-xtradb-cluster/5.5/view/head:/build/debian/percona-xtradb-cluster-server-5.5.mysql.init and save it as service "foo"

Now I replace the start section with:

  'start')
        # Start daemon
        log_daemon_msg "Starting foo"
        log_daemon_msg "Parameters: $@"
        ;;

The parameter seems to work just as with Centos. Of course the "start" utility doesn't work as this isn't an upstart script.

hingo@chewbacca:~$ sudo /etc/init.d/foo start
 * Starting foo
 * Parameters: start
hingo@chewbacca:~$ sudo /etc/init.d/foo start ---wsrep-cluster-start
 * Starting foo
 * Parameters: start ---wsrep-cluster-start
hingo@chewbacca:~$ start foo bar
start: Unknown job: foo
hingo@chewbacca:~$ sudo service foo start bar
 * Starting foo
 * Parameters: start bar
hingo@chewbacca:~$ lsb_release -ai
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal