|
|
@@ -70,7 +70,7 @@ then
|
|
|
else
|
|
|
if [[ "$debug" -eq 1 ]]
|
|
|
then
|
|
|
- echo "DEBUG: $SERVICE gwMTA is enabled in config, but no processes could be found."
|
|
|
+ echo "DEBUG: $SERVICE gwMTA is enabled in config, but no processes could be found." >&2
|
|
|
fi
|
|
|
echo "P \"$SERVICE MTA\" status=0;;;1 $SERVICE Mail Transfer Agent process is not Running."
|
|
|
fi
|
|
|
@@ -153,7 +153,7 @@ if [[ -n "$gwAdminProcess" ]]
|
|
|
then
|
|
|
if [[ "$debug" -eq 1 ]]
|
|
|
then
|
|
|
- echo "DEBUG:We found a $SERVICE gwAdmin process ID: $gwAdminProcess"
|
|
|
+ echo "DEBUG:We found a $SERVICE gwAdmin process ID: $gwAdminProcess" >&2
|
|
|
fi
|
|
|
gwAdminListener=$(ss -lpn| grep -F "pid=$gwAdminProcess" | awk '{print $5}' | grep -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort -u | sed 's/^::ffff://' | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')
|
|
|
if [[ -n "$gwAdminListener" ]]
|