Project

General

Profile

Bug #2191 » epgd-tool.diff

marco, 06/02/2015 02:42 PM

View differences:

epgd-tool 2015-06-02 14:38:57.838070644 +0200
PASSWORD=""
MY_CNF="/etc/mysql/my.cnf"
[ $(grep "^NAME=" /etc/os-release |cut -d "=" -f2) == Fedora ] && MY_CNF="/etc/my.cnf"
MY_DB_SV="mysqld"
DISTRI="$(grep "^NAME=" /etc/os-release |cut -d "=" -f2)"
RELEASE="$(grep "^VERSION_ID=" /etc/os-release |cut -d "=" -f2)"
if [ $DISTRI == Fedora ] ; then
MY_CNF="/etc/my.cnf"
if [ $RELEASE -gt 21 ] ; then
"$MY_DB_SV"="mariadb"
fi
fi
rc_start ()
{
......
systemd_start ()
{
MYSQL_START="systemctl start mysqld"
MYSQL_RESTART="systemctl restart mysqld"
MYSQL_START="systemctl start "$MY_DB_SV""
MYSQL_RESTART="systemctl restart "$MY_DB_SV""
EPGD_START="systemctl epgd start"
EPGD_STOP="systemctl epgd stop"
EPGD_RESTART="systemctl epgd restart"
    (1-1/1)