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)



The following reply was made to PR pkg/54295; it has been noted by GNATS.

From: Dima Veselov <kab00m%labma.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: nia%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/54295 (www/lighttpd reload function is not working)
Date: Fri, 14 Jun 2019 18:58:04 +0300

 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