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"
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')
log_daemon_ msg "Starting foo"
log_daemon_ msg "Parameters: $@"
# Start daemon
;;
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 cluster- start cluster- start
* Starting foo
* Parameters: start
hingo@chewbacca:~$ sudo /etc/init.d/foo start ---wsrep-
* Starting foo
* Parameters: start ---wsrep-
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