| Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 1 | #!/bin/sh | 
|  | 2 |  | 
|  | 3 | # This software may be freely redistributed under the terms of the GNU | 
|  | 4 | # public license. | 
|  | 5 | # | 
|  | 6 | # You should have received a copy of the GNU General Public License | 
|  | 7 | # along with this program; if not, write to the Free Software | 
|  | 8 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 
|  | 9 |  | 
|  | 10 | # This checks for unconfined apps running, initrc and inetd are signs | 
|  | 11 | # of missing transitions. | 
|  | 12 |  | 
|  | 13 | pidof xinetd >/dev/null | 
|  | 14 | if [ $? -eq 0 ] ; then | 
|  | 15 | ps -eZ | egrep "initrc|inetd" | egrep -v `pidof xinetd` | tr ':' ' ' | awk '{ printf "%s %s\n", $3, $NF }' | 
|  | 16 | else | 
|  | 17 | ps -eZ | egrep "initrc" | tr ':' ' ' | awk '{ printf "%s %s\n", $3, $NF }' | 
|  | 18 | fi | 
|  | 19 |  |