#!/bin/sh
#SYSTEMS: Solaris
#Check if inetd is being started with the '-t' option
MSG="# Checking that inetd is running with the '-t' connection tracing option..."
SYSTEM=`uname -s`
######Solaris######
if [ "$SYSTEM" = "SunOS" ]; then
  echo ""; echo "$MSG"
  INETD=`ps -ef | grep -s "/inetd " | grep -v "grep"`
  INETDT=`echo $INETD | grep " \-t"`
    if [ "$INETD" != "" ]; then  #inetd is running
      if [ "$INETDT" = "" ]; then  #inetd not using the -t option
        echo "--WARN-- [INETD001w] The inetd service is running without the '-t' option."
      fi
    fi
fi
