icinga2/test/jenkins/apache_state.test

11 lines
174 B
Bash
Executable File

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