: /bin/sh # kill packer - inittab will automatically restart it #/* #************************************************************************* #** * #** Copyright (C) 1997 Trans-Mit Pty. Ltd. Melbourne Australia * #** This software may not be loaned, resold, changed or copied * #** in any way without the express written permission of author * #** and Trans-Mit Pty. Ltd., Australia. * #** * #************************************************************************* #** #** $Header $ #** $Author: catcom $ #** $Date: 2014/07/05 12:22:24 $ #** $Locker: $ #** #************************************************************************* #*/ PATH=$PATH:/u/catcom/bin PACKERLOGFILE=/u/catcom/clp/log PACKER=`grep dopak /etc/inittab | awk '{print $5}'` echo "killpak: PACKER={$PACKER}" PACKERPID=`ps -ax 2>/dev/null | grep "$PACKER" | grep -v "su catcom" | grep -v grep | awk '{print $1}'` echo "killpak: PACKERPID={$PACKERPID}" kill $PACKERPID exit #/* #** $Log: killpak,v $ #** Revision 1.2 2014/07/05 12:22:24 catcom #** new linux ps command does not support -x, added stder redirect to /dev/null for backward compat. #** #** Revision 1.1 1997/12/17 14:47:48 catcom #** Initial revision #** #** $Revision: 1.2 $ #** $Source: /u/catcom/AccTraf/src/pcclu/RCS/killpak,v $ #** $State: Exp $ #*/