From d28993db416e7522e48b7fca49749104d79b6e70 Mon Sep 17 00:00:00 2001 From: kodlz Date: Fri, 14 Oct 2022 23:09:00 +0200 Subject: [PATCH] Create check_pihole-FTL_service_script --- check_pihole-FTL_service_script | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 check_pihole-FTL_service_script diff --git a/check_pihole-FTL_service_script b/check_pihole-FTL_service_script new file mode 100644 index 0000000..24ffb6d --- /dev/null +++ b/check_pihole-FTL_service_script @@ -0,0 +1,10 @@ +#!/bin/sh + +STATUS=$(ps ax | grep -v grep | grep pihole-FTL) + +if [ "$STATUS" != "" ] +then + exit 0 +else + exit 1 +fi