Skip to content

Commit

Permalink
fixed call to mysqld_safe
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser26 committed Oct 13, 2023
1 parent b0cd8e5 commit 5ea0aa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/scripts/db/mysql_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ start_mysqlsd () {
chown -R mysql:mysql /var/lib/mysql/ >> "$LOG_FILE"
fi
if [[ $PRINT_STATUS == "-p" ]]; then echo "Starting mysql..."; fi
/usr/bin/mysqld_safe --skip-syslog & >> "$LOG_FILE";
/usr/bin/mysqld_safe --skip-syslog >> "$LOG_FILE" &
chown -R mysql:mysql /var/lib/mysql/ >> "$LOG_FILE"
echo "Attempting to start mariadb"
else #not a container
Expand Down Expand Up @@ -89,7 +89,7 @@ check_mysql () {
if [[ $(pgrep -c -u mysql $PROCESS ) -eq 0 ]]; then
echo "mariadb not running , attempting to restart"
chown mysql:mysql /var/log/mariadb/mariadb.log >> "$LOG_FILE";
/usr/bin/mysqld_safe --skip-syslog & >> "$LOG_FILE"
/usr/bin/mysqld_safe --skip-syslog >> "$LOG_FILE" &
fi
else # not in a contianer
DB_STATUS=$(systemctl status mysql |grep 'running' | wc -l )
Expand Down Expand Up @@ -179,5 +179,5 @@ mysqld_reboot () {
mysql -u root --password=$DB_ADMIN_PWD -e "SHUTDOWN"
sleep 2
check_for_container
start_mysqlsd
start_mysqlsd >> "$LOG_FILE";
}

0 comments on commit 5ea0aa8

Please sign in to comment.