[Techtalk] killproc

Maria McKinley maria at shadlen.org
Fri Jan 5 08:00:59 UTC 2007


Wim De Smet wrote:
> On 1/2/07, Maria McKinley <maria at shadlen.org> wrote:
>> Hi there,
>>
>> I run debian, and I have a script I want to stick in /etc/init.d/, but
>> it calls the function killproc, which does not seem to be available in
>> the debian package system. Does anyone know how killproc works, and how
>> I can re-write the line using kill?
>>
>> killproc $MATHLM_BINARY 15
> 
> Debian uses start-stop-daemon(8) in many of its scripts for what
> killproc seems to do but some looking around actually found me that
> killproc is part of the lsb (linux standards base). It resides in
> /lib/lsb/init-functions on my system. I'm running debian sid though.
> To make it work you could try changing that source line:
> . /etc/init.d/functions
> to:
> . /lib/lsb/init-functions
> if that file exists on your system. It's provided by the package lsb-base.
> 
> greets,
> Wim

Well, between Wim's mail and Andreas' mail, I have things much closer, 
but keep running into more differences. I'm thinking I'm just going to 
try to adapt one of the simpler scripts in init.d at this point, but if 
someone feels like helping me do some more troubleshooting, here are the 
errors I am still getting:

./mathlm: line 65: checkpid: command not found
./mathlm: line 67: failure: command not found

checkpid just doesn't seem to exist in the current distributions of 
debian, and I have no idea what failure is - sticking failure into 
google is not a useful exercise. ;-)

Thanks again for everyone's help.

cheers,
maria


More information about the Techtalk mailing list