Bug 804880

Summary: rwhod is killed by systemd
Product: [Fedora] Fedora Reporter: Ian Donaldson <iand>
Component: rwhoAssignee: Honza Horak <hhorak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: hhorak, ian
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-22 13:27:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Donaldson 2012-03-20 04:18:05 UTC
Description of problem:

rwhod won't stay up for more than about 2 minutes, then systemd kills it

Version-Release number of selected component (if applicable):

rwho-0.17-36.fc16.i686


How reproducible:

100%

Steps to Reproduce:
1. systemctl start rwhod.service
2. note this doesn't return for 2 minutes; note rwhod runs for 2 minutes
3. note rwhod is no longer running after 2 minutes
  
Actual results:

rwhod not running


Expected results:

rwhod running

Additional info:

 /lib/systemd/system/rwhod.service has been configured with the
PIDFile=/var/run/rwhod.pid  parameter, telling systemd to expect a pid
file when rwhod is happy.

However rwhod never writes a pid file, so systemd kills it after 2 minutes.

In prior Fedora releases, the /etc/init.d/rwhod script did a 'touch /var/run/rwhod.pid' for completeness.

The fix is to remove the PIDFile arg from /lib/systemd/system/rwhod.service,
or to modify rwhod source to get it to write a pid file.

Comment 1 Honza Horak 2012-03-22 13:27:23 UTC
This bug has been fixed together with bug #799246 and a new rwho-0.17-39.fc16 is already in F16.

Please, try the new build also available here:
https://admin.fedoraproject.org/updates/FEDORA-2012-3344/rwho-0.17-39.fc16

Comment 2 Ian Donaldson 2012-03-22 22:59:07 UTC
Tried new version; starts ok.  Thanks.

Comment 3 Honza Horak 2012-04-24 14:49:26 UTC
*** Bug 815590 has been marked as a duplicate of this bug. ***