#!/bin/sh # This checks for unconfined apps running, initrc and inetd are signs # of missing transitions. pidof xinetd >/dev/null if [ $? -eq 0 ] ; then ps -eZ | egrep "initrc|inetd" | egrep -v `pidof xinetd` | tr ':' ' ' | awk '{ printf "%s %s\n", $3, $NF }' else ps -eZ | egrep "initrc" | tr ':' ' ' | awk '{ printf "%s %s\n", $3, $NF }' fi