Hi @all,

a hint for rbh-config of Robinhood v3.0 for checking if MySQL/MariaDB is running. The script sets the value for the service to 'mysqld' and checks for 'mariadb'. I used the RPM's for MariaDB 10.1.16 provided by mariadb.org for RHEL6-x86_64, but in this case the service is called 'mysql' and rbh-config could not find it:

[root@btc0 mysql]# rbh-config create_db
Checking system configuration...
mysqladmin command OK.
mysql_config command OK.
MySQL version is 10.
Checking service mysqld...
mysqld: unrecognized service
Service 'mysqld' is not running.
It must be started to run this script.
[root@btc0 mysql]#

So I inserted some additional lines into my rbh-config script to fix this:

    service=mysqld
=>  if [ -x /etc/init.d/mysql ]; then
=>      service=mysql
=>  fi
    rpm -q mariadb > /dev/null && service=mariadb
    running=0
    echo "Checking service $service..."
    if [ -x /usr/bin/systemctl ]; then
        /usr/bin/systemctl status $service && running=1
    else
        /sbin/service $service status && running=1
    fi

[root@btc0 ~]# rbh-config create_db
Checking system configuration...
mysqladmin command OK.
mysql_config command OK.
MySQL version is 10.
Checking service mysql...
MySQL running (23963)                                      [  OK  ]
mysql is running
mysql command OK.

Enter a custom identifier for your filesystem. E.g. lustre
fsname (max 8 chars): dstest


Cheers, Carsten


--
Carsten Beyer
Abteilung Systeme

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstraße 45a * D-20146 Hamburg * Germany

Phone:  +49 40 460094-221
Fax:    +49 40 460094-270
Email:  [email protected]
URL:    http://www.dkrz.de

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

Reply via email to