[PATCH/puppet] conf/redhat: Prevent killproc from removing /usr/sbin/puppetmasterd

7 views
Skip to first unread message

Todd Zullinger

unread,
Oct 27, 2009, 11:42:57 AM10/27/09
to puppe...@googlegroups.com, Matthias Saou
Mattias Saou ran into a serious bug cause by 9dff71 (Use -p option to
killproc). The puppetmaster init script lacked a pidfile variable,
which ended up with /usr/sbin/puppetmasterd being removed.
---

This patch is of the brown paper bag variety. It's an embarrassing
oversight on my part and I deserve a few good lumps for breaking this
between rc2 and release. I'm sorry about that. :(

I pushed this fix to the tickets/0.25.x/2751 branch at
git://jet.mox.net/~tmz/puppet.git, as it's a fix on top of the bug I
added there.

conf/redhat/server.init | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/conf/redhat/server.init b/conf/redhat/server.init
index 5505058..4f44206 100644
--- a/conf/redhat/server.init
+++ b/conf/redhat/server.init
@@ -13,6 +13,7 @@ PATH=/usr/bin:/sbin:/bin:/usr/sbin
export PATH

lockfile=/var/lock/subsys/puppetmaster
+pidfile=/var/run/puppet/puppetmasterd.pid

# Source function library.
. /etc/rc.d/init.d/functions
--
1.6.5.2

--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Man is a rational animal who always loses his temper when he is called
upon to act in accordance with the dictates of reason.
-- Oscar Wilde

Luke Kanies

unread,
Oct 27, 2009, 4:23:56 PM10/27/09
to puppe...@googlegroups.com
+1


--
It's impossible to foresee the consequences of being clever.
-- Christopher Strachey
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com

Todd Zullinger

unread,
Nov 16, 2009, 11:29:31 AM11/16/09
to puppe...@googlegroups.com
James,

Luke Kanies wrote:
>
> +1
>
> On Oct 27, 2009, at 8:42 AM, Todd Zullinger wrote:
>
>> Mattias Saou ran into a serious bug cause by 9dff71 (Use -p option
>> to killproc). The puppetmaster init script lacked a pidfile
>> variable, which ended up with /usr/sbin/puppetmasterd being
>> removed.
>> ---
>>
>> This patch is of the brown paper bag variety. It's an embarrassing
>> oversight on my part and I deserve a few good lumps for breaking
>> this between rc2 and release. I'm sorry about that. :(
>>
>> I pushed this fix to the tickets/0.25.x/2751 branch at
>> git://jet.mox.net/~tmz/puppet.git, as it's a fix on top of the bug
>> I added there.

I don't think this ever made it into 0.25.x. I updated ticket 2751 in
redmine and rebased the branch on jet.mox.net against the current
0.25.x. If you need me to do anything else, just yell.

--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Love is a snowmobile racing across the tundra. Suddenly it flips,
pinning you underneath. At night, the ice weasels come.
-- Matt Groening

Reply all
Reply to author
Forward
0 new messages