pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/54295 (www/lighttpd reload function is not working)



On Fri, Jun 14, 2019 at 12:50:01PM +0000, nia wrote:
>  
>  I don't think it could work without lighttpd-angel.
>  
>  According to `man rc.subr`, the reload command defaults to sending
>  SIGHUP.
>  
>  When lighttpd-angel is told to reload lighttpd with SIGHUP, what it
>  actually does is send SIGINT to the lighttpd process, wait 5
>  microseconds (!), and spawn another process.
>  
>  I don't have a working lighttpd config right now, but it seems like
>  it would be a good idea to make our init script spawn the angel
>  process instead.
>  
>  Then again, looking in other packaging systems, they're also sending
>  SIGHUP to lighttpd and expecting it to reload. Hm...

My quick research on this topic found that one day it worked
and most of systems missed the point when SIGHUP stopped 
working on lighttpd binary itself. pkgsrc may be the first
one fixing that :-).

Also have to note that SIGHUP is graceful restart but reload is
done by SIGUSR1 instead.


Home | Main Index | Thread Index | Old Index