icinga2/test/jenkins/pidfile.test

13 lines
230 B
Plaintext
Raw Normal View History

2013-12-05 09:46:51 +01:00
#!/bin/sh
pidfile_path="/var/run/icinga2/icinga2.pid"
if [ -f $pidfile_path ];
2013-12-05 09:46:51 +01:00
then
echo "[OK] Icinga2 pidfile found ($pidfile_path)"
2013-12-05 09:46:51 +01:00
exit 0
else
echo "[FAIL] Icinga2 pidfile not found ($pidfile_path)"
2013-12-05 09:46:51 +01:00
exit 1
fi