]> granicus.if.org Git - icinga2/blob - test/jenkins/pgsql_state.test
Update consolecommand.cpp
[icinga2] / test / jenkins / pgsql_state.test
1 #!/bin/sh
2
3 sudo service postgresql status &> /dev/null
4 if [ $? -gt 0 ]; then
5     echo '[FAIL] postgresql is not running'
6     exit 1
7 else
8     echo '[OK] postgresql is running'
9     exit 0
10 fi