This patch only works with lsb-base >= 3.2-13, since status_of_proc()
has been added only then. etch still has lsb-base 3.1-23.2etch1, which
doesn't yet include status_of_proc().
Attached is a quick fix for the etch volatile package, by copy and paste
of the status_of_proc() code from /lib/lsb/init-functions.
Regards,
Gregor
264,265c264,275
< status_of_proc "$DAEMON" "$NAME"
< exit $?
---
> status="0"
> pidofproc "$DAEMON" >/dev/null || status="$?"
> if [ "$status" = 0 ]; then
> log_success_msg "$NAME is running"
> exit 0
> else
> log_failure_msg "$NAME is not running"
> exit $status
> fi
> ## 2008-11-20 GH: was:
> ## status_of_proc "$DAEMON" "$NAME"
> ## exit $?