[Techtalk] killproc

Wim De Smet kromagg at gmail.com
Wed Jan 3 13:12:57 UTC 2007


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


More information about the Techtalk mailing list