Issue #19863 has been updated by Dustin Mitchell.
Subject changed from SIGHUP handling flimsy to SIGHUP does not correctly
restart standalone puppet master
Status changed from Unreviewed to Investigating
Assignee set to Dustin Mitchell
The contradicted documentation is in puppet-master(8):
DIAGNOSTICS
When running as a standalone daemon, puppet master accepts the following
signals:
SIGHUP Restart the puppet master server.
----------------------------------------
Bug #19863: SIGHUP does not correctly restart standalone puppet master
https://projects.puppetlabs.com/issues/19863#change-94561
* Author: Diego Elio Pettenò
* Status: Investigating
* Priority: Normal
* Assignee: Dustin Mitchell
* Category:
* Target version:
* Affected Puppet version: 3.1.1
* Keywords:
* Branch:
----------------------------------------
Hello, I'm a Gentoo Linux developer and I found this bug due to the way the
init script for puppet is implemented in our distribution's package.
First of all, please correct me if I'm wrong in the assumption that this is the
correct behaviour for a system-level puppet master: the master process is
started by root; it drops privileges to the puppet user, and then keeps
running; the libdir used is /var/lib/puppet. If the process is started by
non-root, a non-system instance is running, and the libdir is ~/.puppet.
This being the case, when the SIGHUP signal is sent to a system instance
(running as puppet), it tries to re-start the master process as a non-root
user, causing it to look into ~/.puppet instead of /var/lib/puppet.
Furthermore, since the environment is not cleared before dropping privileges,
ENV['HOME'] is still set to "/root", causing it to look for /root/.puppet (and
thus failing).
Unless we're doing something very wrong in Gentoo, the SIGHUP handling is
unreliable for system instances (which tend to be the ones where you want to
use SIGHUP).
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.