From 176c779dfd22289e082e64b3faee5c834e2277fd Mon Sep 17 00:00:00 2001 From: Guillaume Astier Date: Thu, 17 Mar 2022 13:06:23 +0100 Subject: [PATCH] [UPDATE] - grumph ... boulette --- monithor-client/etc/init.d/monithor-c | 3 ++- monithor-server/etc/init.d/monithor-d | 3 ++- monithor-server/etc/monithor-server/sonde.cfg | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/monithor-client/etc/init.d/monithor-c b/monithor-client/etc/init.d/monithor-c index 4786787..c22f4e2 100755 --- a/monithor-client/etc/init.d/monithor-c +++ b/monithor-client/etc/init.d/monithor-c @@ -16,9 +16,10 @@ umask 022 case "$1" in start) - if [ ! -z $(ps axf| grep monithor-client | grep -v grep) ] + if [ ! -z "$(ps axf| grep monithor-client | grep -v grep)" ] then logger "monithor-client is running ..." + exit else logger "Starting MoniThor Server" /usr/local/bin/monithor-client start diff --git a/monithor-server/etc/init.d/monithor-d b/monithor-server/etc/init.d/monithor-d index 01635dc..8e4ced2 100755 --- a/monithor-server/etc/init.d/monithor-d +++ b/monithor-server/etc/init.d/monithor-d @@ -16,9 +16,10 @@ umask 022 case "$1" in start) - if [ ! -z $(ps axf| grep monithor-server | grep -v grep) ] + if [ ! -z "$(ps axf| grep monithor-server | grep -v grep)" ] then logger "monithor-server is running ..." + exit else logger "Starting MoniThor Server" /usr/local/bin/monithor-server start diff --git a/monithor-server/etc/monithor-server/sonde.cfg b/monithor-server/etc/monithor-server/sonde.cfg index 187d780..3e5d757 100644 --- a/monithor-server/etc/monithor-server/sonde.cfg +++ b/monithor-server/etc/monithor-server/sonde.cfg @@ -1,3 +1,3 @@ -network#ip.sh file#file-present.sh - +part#part-space.sh +process#process-present.sh