Bug 789662 - systemd thttpd PIDFile
Summary: systemd thttpd PIDFile
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: thttpd
Version: 16
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Matthias Saou
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 805524 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-12 06:38 UTC by David James Koolhoven
Modified: 2012-04-18 19:43 UTC (History)
2 users (show)

Fixed In Version: thttpd-2.25b-27.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-12 03:13:15 UTC
Type: ---


Attachments (Terms of Use)

Description David James Koolhoven 2012-02-12 06:38:33 UTC
Description of problem: thttpd stops after a couple minutes of starting if starting from systemd.


Version-Release number of selected component (if applicable): thttpd/2.25b 29dec2003


How reproducible: Completely


Steps to Reproduce:
1. run "su -c 'systemctl start thttpd.service'"
2. wait a couple minutes
3. check with "ps -e | grep thttpd"
  
Actual results:
thttpd stops within a couple minutes

Expected results:
thttpd keeps running until stopped with "kill".

Additional info:
The source of this problem is in the "/lib/systemd/system/thttpd.service" 
file, the following line..
PIDFile=/var/run/thttpd
changing it to
PIDFile=/var/run/thttpd.pid
causes thttpd to stay up and running, and act as expected.

Likely cause is that the default PID file specified in the thttpd configuration file "/etc/thttpd.conf" has the line...
pidfile=/var/run/thttpd.pid

Problem is new so this is likely a result of systemd properly checking the PID files since the following URL indicates this was built into systemd versions in september of 2011

http://lists.fedoraproject.org/pipermail/scm-commits/2011-September/662396.html

Comment 1 Matthias Saou 2012-03-26 14:07:31 UTC
*** Bug 805524 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Update System 2012-03-26 14:27:04 UTC
thttpd-2.25b-27.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/thttpd-2.25b-27.fc16

Comment 3 Fedora Update System 2012-03-26 14:27:14 UTC
thttpd-2.25b-27.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/thttpd-2.25b-27.fc17

Comment 4 Fedora Update System 2012-03-28 05:51:32 UTC
Package thttpd-2.25b-27.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing thttpd-2.25b-27.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4727/thttpd-2.25b-27.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-04-12 03:13:15 UTC
thttpd-2.25b-27.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2012-04-18 19:43:50 UTC
thttpd-2.25b-27.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.