Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259438 - www-servers/lighttpd-1.4.20: /etc/init.d/lighttpd reload caused lighttpd to stop
Summary: www-servers/lighttpd-1.4.20: /etc/init.d/lighttpd reload caused lighttpd to stop
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: PPC Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-18 01:23 UTC by tree
Modified: 2009-02-20 19:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tree 2009-02-18 01:23:19 UTC
Problem: /etc/init.d/lighttpd reload sends a HUP signal to the active lighttpd.  Lighttpd isn't supposed to terminate, but is supposed to force it to reread its configuration file and keeps running.

The function reload() in /etc/init.d/lighttpd contains:
start-stop-daemon --stop --oknodo --signal HUP --quiet --pidfile "${LIGHTTPD_PID}"

According to the manpage of start-stop-daemon,
  -s|--signal signal: With --stop , specifies the signal to send to processes being stopped (default 15).


Reproducible: Always

Steps to Reproduce:
1.Ran top -b -d 1 | awk '{if($12 == "lighttpd") print NR,$0}' #to check whether lighttpd is running.
2. /etc/init.d/lighttpd stop
3. killall lighttpd
4. /etc/init.d/lighttpd start
5. /etc/init.d/lighttpd reload

Actual Results:  
The service script reload terminated lighttpd.

Expected Results:  
The lighttpd should reload its configuration and keep running.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-18 23:18:51 UTC
1) The PPC team has nothing to do with this per se.
2) Please post your `emerge --info' and then reopen this bug report.
Comment 2 tree 2009-02-20 19:05:31 UTC
Nevermind.  It was an err that I thought it was a bug.  I just found out that Lighttpd, not like Apache, currently does not have a reload function.  Sorry.