Bug #2192 RPM: add mysqld -> mysql initscript symlink
Submitted: 22 Dec 2003 11:54 Modified: 28 Mar 2008 10:48
Reporter: [ name withheld ] Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Packaging Severity:S4 (Feature request)
Version:4.0.14 OS:Linux (Linux/i386)
Assigned to: Kent Boortz CPU Architecture:Any

[22 Dec 2003 11:54] [ name withheld ]
Description:
The Red Hat mysql-server rpm had the /etc/rc.d/init.d/mysqld initscript.  The mysql.com MySQL-server rpm has the /etc/init.d/mysql initscript.  Red Hat's chkconfig supplies a /etc/init.d -> /etc/rc.d/init.d symlink for compatibility.

It would be nice to have a symlink in the MySQL-server rpm for existing systems that are migrating from the maintained packages of other distros (Red Hat and possibly others).

How to repeat:
try:

/etc/rc.d/init.d/mysqld restart

-> it doesn't work :(

Suggested fix:
In spec file:

%install
ln -s %{_sysconfdir}/init.d/mysql $RPM_BUILD_ROOT%{_sysconfdir}/init.d/mysqld
[22 Jul 2006 19:59] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/9455