| Bug #63777 | Bad startup script | ||
|---|---|---|---|
| Submitted: | 16 Dec 2011 17:01 | Modified: | 27 Mar 2012 1:35 |
| Reporter: | Remi Collet (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Workbench | Severity: | S3 (Non-critical) |
| Version: | 5.2.36 | OS: | Linux (Fedora 16) |
| Assigned to: | CPU Architecture: | Any | |
[16 Dec 2011 17:02]
Remi Collet
Switch from /etc/init.d script to service command
Attachment: mysql-workbench-5.2.36-profiles.patch (text/x-patch), 1.62 KiB.
[16 Dec 2011 17:49]
Valeriy Kravchuk
Thank you for the bug report. Verified by code review: macbook-pro:5.5 openxs$ grep -n init.d /Applications/MySQLWorkbench.app/Contents/Resources/mysql.profiles/Fedora_Linux_* /Applications/MySQLWorkbench.app/Contents/Resources/mysql.profiles/Fedora_Linux_(MySQL_Package).xml:8: <value type="string" key="sys.mysqld.start">/etc/init.d/mysqld start</value> /Applications/MySQLWorkbench.app/Contents/Resources/mysql.profiles/Fedora_Linux_(MySQL_Package).xml:9: <value type="string" key="sys.mysqld.stop">/etc/init.d/mysqld stop</value> /Applications/MySQLWorkbench.app/Contents/Resources/mysql.profiles/Fedora_Linux_(Vendor_Package).xml:8: <value type="string" key="sys.mysqld.start">/etc/init.d/mysqld start</value> /Applications/MySQLWorkbench.app/Contents/Resources/mysql.profiles/Fedora_Linux_(Vendor_Package).xml:9: <value type="string" key="sys.mysqld.stop">/etc/init.d/mysqld stop</value>
[27 Mar 2012 1:35]
Philip Olson
Fixed as of 5.2.39, and here's the changelog entry: On Fedora Linux version 16 and greater, the "service" command is now used to start and stop the MySQL Server, instead of "/etc/init.d/mysqld".
[23 Jun 2012 7:45]
randy cole
from Fedora 17, systemctl is now in /usr/bin/systemctl for typical installations.

Description: In Fedora_Linux_(Vendor_Package).xml <value type="string" key="sys.mysqld.start">/etc/init.d/mysqld start</value> <value type="string" key="sys.mysqld.stop">/etc/init.d/mysqld stop</value> In Fedora (and RHEL), /etc/init.d script should not be called directly but through /sbin/service wrapper. Since fedora 16, /etc/init.d/mysqld is not provided anymore, replaced a a systemd unit. The right syntaxe are (fedora >= 16 only) /sbin/systemctl start mysqld.service /sbin/systemctl stop mysqld.service How to repeat: - Suggested fix: A simpler solution is probably to use "service" command which works in all version (redirect to systemd command or init.d command). The attached patch does this (and also switch serverVersion to 5.5 which is now available in all fedora maintained version, >=15)