Bug #32117 mysql-service-agent broken on recent ubuntu versions
Submitted: 5 Nov 2007 16:45 Modified: 23 Jul 2008 14:50
Reporter: Monty Taylor
Status: Need Doc Info
Category:Monitoring: Agent Severity:S3 (Non-critical)
Version:1.2, 1.3, 2.0 OS:Linux (ubuntu gutsy)
Assigned to: Carsten Segieth Target Version:2.0
Triage: D4 (Minor)

[5 Nov 2007 16:45] Monty Taylor
Description:
This code in /opt/mysql/enterprise/agent/etc/init.d/mysql-service-agent:

 if test -f $lsb_functions ; then
   source $lsb_functions
 else

is not posix compliant. As the top of the script is declared with #!/bin/sh, this will
break on recent ubuntu installs which do not use bash as /bin/sh

How to repeat:
Just try it on a recent (I'm using gutsy, but feisty should have this as well) ubuntu

Suggested fix:
Either: declare the top of the script with /bin/bash, or replace the source
$lsb_functions with . $lsb_functions
[16 Nov 2007 21:40] Bill Weber
marking as Verified so it shows in bug-council queries
[4 Dec 2007 2:57] Monty Taylor
At a client site and this bug affects them.
[17 Jul 2008 21:52] Keith Russell
Patch installed in versions => 2.0.0.7010
[24 Jul 2008 21:41] Keith Russell
Carsten can you answer this question for docs?