#!/bin/sh
# $RCSfile: pidof,v $ ($Revision: 1.2 $) $Date: 2002/06/21 14:37:55 $

case `uname` in

  # Platform specific commands to output the 
  SunOS)
        # We actually need to kill the process group id.
	ps -efj | grep $1 | grep -v pidof | grep -v grep | awk '{ print $4; }' | sort | uniq
  ;;

  # Default (Linux)
  *)
	/sbin/pidof $1 
  ;;

esac
