On Wed, 6 Apr 2011, Stuart Henderson wrote:

> On 2011/04/06 15:09, Piotr Sikora wrote:
> > Hi,
> > 
> > >> > Because it is next to impossible to get a correct return. By default,
> > >> > all we can check is that SIGHUP was successfull or not, that's it.
> > >>
> > >> Yes, but there are 8 ports that have custom rc_reload logic.
> > >
> > >What does this have to do with anything?
> > 
> > Uhm... They *do* return correct exit value in case of success /
> > error, which means that returning "daemon(ok/failed)" in their case
> > is useful.
> 
> The only way I'd accept this is if we had something like
> reload_can_fail, and only print ok/fail if a particular script
> supports it. However it does add complexity (and inevitable
> "why does daemon X say ok/fail when it reloads but other
> daemons don't" questions...) so I'm not sure if we want that.

I would really not be happy with that. I think so far we managed to stay 
super small and simple and I don't really want to add variable/knob for 
each possible situation.
Although others may disagree...

-- 
Antoine

Reply via email to