Backgroud: Running SUSE 12 on Vmware, Installed Galera-Mysql
My question is that there seems to be a conflict or something weird with the mysql init.d script in how it gets executed.
i.e. - running it through service or systemctl appears to have strange results, or at least results that don’t jive with what is expected. options not being accepted etc…
running it directly /etc/init.d/mysql executes as expected or as it would if on SUSE 11
I also checked and there is no mysql.service in the /etc/systemd/system, wondering I try creating one if it would work. There is a the SYSTEMD_NO_WRAP=1 in the init script, but I think that’s just to send errors to std out.
Is there something I can do to correct this or just keep running it direct /etc/init.d/mysql ?
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.36-38-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
The service file didn’t exist in the alternate location either, but that brings me to another question: How is service or systemctl trying to run mysql if the service file doesn’t exist ? Service might use the init.d script to start but I see the same errors as if I were it was run using systemctl. Do all service commands get sent to systemctl somehow ?
The service file didn’t exist in the alternate location either, but that brings me to another question: How is service or systemctl trying to run mysql if the service file doesn’t exist ? Service might use the init.d script to start but I see the same errors as if I were it was run using systemctl. Do all service commands get sent to systemctl somehow ?[/QUOTE]
Hi
If you look in at the /usr/sbin/rc* files, most are just softlinks to /usr/sbin/service so maybe there is a rcmysql file?
Yes, they all get forwarded to systemctl (systemd) if the init script has ‘SYSTEMD_NO_WRAP=1’ that is apparently the standard wrapper for any initscript that is using [open]SUSE API.
Yes I know SLES 12 switched, but doesn’t mean that you have too. MySQL is still available and runs just fine on SUSE 12. We are currently looking at MariaDB but it’s on a long list and low priority. Our Drupal site started on MySQL and unless there is really a critical need to change it, it will stay on MySQL at least for the forseeable future.