icinga2/test/jenkins/mysql_state.test

11 lines
177 B
Bash
Executable File

#!/bin/sh
sudo service mysqld status &> /dev/null
if [ $? -gt 0 ]; then
echo '[FAIL] mysqld is not running'
exit 1
else
echo '[OK] mysqld is running'
exit 0
fi