[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: killproc & redhat 7.2



On Mon, May 13, 2002 at 08:42:11PM +0200, Mikael Chambon wrote:
> Hi,
> 
> I was reading the sshd init script in /etc/rc.d/init.d/sshd
> and saw that the script is using killproc to kill the daemon
> if for example we do a: /etc/rc.d/init.d/sshd stop
> 
> My question is simple, where does this binary come from (killproc) ?

It's not a binary.  It's a function.

> I don't have anything called killproc on any RH 7.2 systems that I have
> installed,
> I suspect that I did something wrong.

No, you didn't.

> And off course I try to research it using a "rpm -qlp *.rpm | grep killproc
> " on both
> 7.2 RPMS directories but I've found nothing.
> 
> If someone could help me to solve this problem ...
> 
> Thanks a lot ....
> 
> 
> --
> Mikael Chambon

You may have noticed that /etc/rc.d/init.d/sshd sources (like a C
"include") /etc/rc.d/init.d/functions.  That script contains the shell
function killproc which works just like a binary executable.

Cheers,
-- 
Bob McClure, Jr.            | We have enough youth.
Bobcat Open Systems, Inc.   | How about a fountain of SMART?
robertmcclure earthlink net |





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]