mysqlcluster-71/cluster/init.d/cmon correction

Bug #894278 reported by Mike
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cmon
New
Undecided
Unassigned

Bug Description

RETVAL=0
pidof_prog() {
        if [ -e "$PIDFILE" ]; then
                if pidof $PROGNAME | tr ' ' '
' | grep $(cat $PIDFILE); then
                    return 0
                fi
        fi
        return 1
}

\ missed!

Revision history for this message
johan (johan-severalnines) wrote : Re: [Bug 894278] [NEW] mysqlcluster-71/cluster/init.d/cmon correction

Hi Mike,
Thanks, will fix this.

Btw, for subsequent requests, can you please use our new support system at
http://support.severalnines.com

Thank you, good luck
Johan

On 2011-11-24 09.24, Mike wrote:
> Public bug reported:
>
> RETVAL=0
> pidof_prog() {
> if [ -e "$PIDFILE" ]; then
> if pidof $PROGNAME | tr ' ' '
> ' | grep $(cat $PIDFILE); then
> return 0
> fi
> fi
> return 1
> }
>
>
> \ missed!
>
> ** Affects: cmon
> Importance: Undecided
> Status: New
>

Revision history for this message
Mike (one6f) wrote :

Sorry, not "\ missed", but "\n" probably missed here:
if pidof $PROGNAME | tr ' ' '
' | grep $(cat $PIDFILE); then

Else do not work for example
~#/etc/init.d/cmon status
cmon is NOT running.
~#ps -ef|grep cmon
root 3154 1 0 08:14 ? 00:00:00 /usr/local/cmon/sbin//cmon --config-file=/etc/cmon.cnf

Revision history for this message
Mike (one6f) wrote :

The second thing:
"Config directory" in configurator is /etc/ and don't changeable. Hence /etc/my.cnf.
But
~#cat /etc/rc3.d/S99mysqld
.......
CONFIGINI=/etc/mysql/config.ini
CONFIGDIR=/etc/mysql

so after reboot mysql service can not start.

Fixed with
~#mkdir /etc/mysql; ln -s /etc/my.cnf /etc/mysql/my.cnf

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.