[QUOTE=cisaksen;29617]When I run service mysql bootstrap I get the results from case “$1” in from rc.status code
Background: I’m trying to setup a Galera MariaDB Cluster.
I’m getting the init.d script to work when I run it this way: /etc/init.d/mysql bootstrap bootstrap is a option in the init.d script.[/QUOTE]
if I understand you correctly, you’re saying that calling “service mysql bootstrap” does forward to systemd, but the parameter “bootstrap” isn’t forwarded to the actual script? That’d be conforming to the man page:
[QUOTE]service SERVICE ACTION [OPTIONS]
The SERVICE parameter specifies a systemd service name to operate on. The supported values of ACTION depend on the specified service. The actions start, stop, reload, restart, try-restart, force-reload, and status are
forwarded to systemctl, OPTIONS are ignored in that case. Other actions may be defined in /usr/lib/initscripts/legacy-actions. Legacy actions are called directly and OPTIONS are passed on the command line.(QUOTE]
I guess you have not created /usr/lib/initscripts/legacy-actions/mysql/bootstrap as a script to invoke /etc/init.d/mysql bootstrap after setting SYSTEMD_NO_WRAP