#!/bin/sh if [ -e "/var/run/icinga2/cmd/icinga2.cmd" ]; then echo "Icinga2 commandpipe found" exit 0 else echo "Icinga2 commandpipe not found" exit 1 fi