Issue #3323 has been updated by Chris Wilson.

As noted on #1014, there are situations where it's necessary to fully restart 
Apache (for example, "adding a 
module":https://code.google.com/p/modwsgi/issues/detail?id=300), and others 
where it's preferable to reload (whenever possible, to avoid aborting open 
connections).

So there is definitely value in having both options available to us. The 
question is how to deal with it sanely in Puppet. How does puppet know that 
restarting Apache removes the need to reload it as well? In my view it's not 
terrible to do both. That makes the problem just one of sending an arbitrary 
message to a resource, whether it's "restart", "reload", "go fish" or whatever, 
and having the resource know how to deal with that message (e.g. by notifying a 
separate Exec resource to run).

----------------------------------------
Feature #3323: Create hasreload similar to hasrestart
https://projects.puppetlabs.com/issues/3323#change-96730

* Author: Chuck McIntyre
* Status: Needs More Information
* Priority: Normal
* Assignee: James Turnbull
* Category: service
* Target version: 3.x
* Affected Puppet version: 0.24.8
* Keywords: hasreload, service
* Branch: https://github.com/jamtur01/puppet/tree/tickets/master/3323
----------------------------------------
Many init scripts allow for a "reload" option in addition to a restart and a 
stop/start. 

It would be useful if this could be defined for a given service generically, 
rather than having to resort to an Exec resource or other workaround for cases 
where we want to reload instead of restart (an example could be made using 
apache or bind configuration changes).

I am attaching an example diff (note this is not a patch, nor has it been 
tested) to describe in more detail how this might be accomplished.

I am willing to submit a patch for this if the feature is accepted. I would 
like some guidance as to whether the existing unit test modifications are 
sufficient or if it is necessary to test that (at least) reload and restart get 
called appropriately (not simply that stop/start get called when not specified).



-- 
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.

Reply via email to