0 Members and 1 Guest are viewing this topic.
#!/bin/shecho "*** Process for MYSQL/MARIADB service ***"if [ -f /etc/rc.d/init.d/mysql ] ; then if [ "$(/etc/rc.d/init.d/mysql status|grep pid)" == "" ] ; then /etc/rc.d/init.d/mysql start fi sleep 1elif [ -f /etc/rc.d/init.d/mysqld ] ; then if [ "$(/etc/rc.d/init.d/mysqld status|grep pid)" == "" ] ; then /etc/rc.d/init.d/mysqld start fi sleep 1else echo " - No need started"fiecho " - Process: restart"if [ -f /etc/rc.d/init.d/mysql ] ; then /etc/rc.d/init.d/mysql stop pkill -9 mysql pkill -9 mysql_safe /etc/rc.d/init.d/mysql startelif [ -f /etc/rc.d/init.d/mysqld ] ; then /etc/rc.d/init.d/mysqld stop pkill -9 mysqld pkill -9 mysql_safe /etc/rc.d/init.d/mysqld startfiecho "No message for restart"
Page created in 0.03 seconds with 21 queries.