puppetlabs/puppet-community-debian — pull request #7 by MosesMendoza (2012-01-31 01:26:41+00:00)
Title: Ticket/2.7.x/12186 hardy fix status of proc

In Ubuntu Hardy (8.0.4.4 LTS), the /lib/lsb/init-functions script for managing
services does not yet implement the status_of_proc() function, which
is the standard method of getting proc info for service status info
in init scripts. The status_of_proc() function was implemented in
later versions of lsb. Currently, the init scripts in the
community-debian release of puppet source the init-functions script
and call to status_of_proc() for status info, which fails in hardy
bacause the status_of_proc() function is not implemented.

This patch modifies the puppet.init and puppetmaster.init scripts
in the puppet debian package to implement status_of_proc
(taken from later versions of lsb). Rather than modify
/lib/lsb/init-functions directly, this patch adds a define-if section
to the status function of both init scripts that defines
status_of_proc() if it is not found. This allows for future/modified
versions of status_of_proc in init-functions to be honored and
should not affect any version post-Hardy. Tested and confirmed
appropriate init script behavior for puppet agent and master both
if status_of_proc exists in /lib/lsb/init-functions as well as if it
does not.

Signed-off-by: Moses Mendoza