Bug 132357
Summary: | hal daemon does not set pid file | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Grubb <linux_4ever> | ||||
Component: | hal | Assignee: | David Zeuthen <davidz> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | mclasen | ||||
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: | 2004-09-21 07:50:36 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 123268 | ||||||
Attachments: |
|
Description
Steve Grubb
2004-09-11 14:47:59 UTC
The initscript is responsible for maintaining the pid file and in the Fedora RPM's the pidfile used is /var/run/haldaemon.pid. If you want to use a different path, then you might need some 'mkdir -p' stuff in e.g. the %pre section of the RPM file. Or something else. If you have a patch for the hal.spec to fix this I'll be happy to apply it. >The initscript is responsible for maintaining the pid file and in the >Fedora RPM's the pidfile used is /var/run/haldaemon.pid. The initscripts cannot maintain it. How do they know what its pid is after a fork? All software is supposed to write its own pidfile and then the initscripts will use it. Stunnel.c is a good & simple example. Also, the configure should probably be called using: --with-pid-file=redhat >If you have a patch for the hal.spec to fix this I'll be happy >to apply it. I'll send a patch later. Let me get the pid file being created after the fork and then we'll see what other fixing up there is. OK, I concur, the daemon should be writing the pid file instead. Awaiting your patch. Thanks, David Created attachment 103767 [details]
Patch to create pid
The least intrusive way to solve this was to add the HALD_PID_FILE define to
config.h and then use it in the hald.c file. I'm testing this patch and it
seems to work fine for me.
I also found the root of some of my problems. The configure script uses
/etc/redhat-release to make some decisions, but that is not a BuildRequires. It
really should be for people doing bootstrap builds. It also helps document what
contributes to the build process.
Hi, sorry for the lag. I've committed the patch upstream and also modified the hald/haldaemon.in file which is used as a basis for the Red Hat initscript. Will close this bug when I've fixed the spec file and made a new release. Thanks for the patch, David I've changed the spec file such that --with-pid-file is passed to configure - that way we don't rely on /etc/redhat-release for this package. Available in hal-0.2.98-4. |