RHEL’s MariaDB : how to do I add service script in Linux’s startup.
[ root @ my-host-name : ~ ] ps -ef | grep mysql root 2158 1 0 02:36 ? 00:00:00 /bin/sh /opt/rh/rh-mariadb101/root/usr/bin/mysqld_safe –datadir=/var/opt/rh/rh-mariadb101/lib/mysql –socket=/var/lib/mysql/mysql.sock –pid-file=/var/run/rh-mariadb101-mariadb/mariadb.pid –basedir=/opt/rh/rh-mariadb101/root/usr –user=mysql mysql 2332 2158 0 02:36 ? 00:00:00 /opt/rh/rh-mariadb101/root/usr/libexec/mysqld –basedir=/opt/rh/rh-mariadb101/root/usr –datadir=/var/opt/rh/rh-mariadb101/lib/mysql –plugin-dir=/opt/rh/rh-mariadb101/root/usr/lib64/mysql/plugin/ –user=mysql –log-error=/var/opt/rh/rh-mariadb101/log/mariadb/mariadb.log –pid-file=/var/run/rh-mariadb101-mariadb/mariadb.pid…