FS#15192 - [libdaemon] creates pidfiles in /usr/var/run
Attached to Project:
Arch Linux
Opened by Christian Léger (EvilSnowball) - Sunday, 21 June 2009, 00:40 GMT
Last edited by Thayer Williams (thayer) - Sunday, 21 June 2009, 18:56 GMT
Opened by Christian Léger (EvilSnowball) - Sunday, 21 June 2009, 00:40 GMT
Last edited by Thayer Williams (thayer) - Sunday, 21 June 2009, 18:56 GMT
|
Details
Description:
libdaemon (tries to) create pidfiles in /usr/var/run instead of /var/run. The symptom would manifest itself in programs that use it to create their pidfiles (ex: cdemu-daemon, avahi). Additional info: * package version(s) 0.13-1 * config and/or log files etc. from /var/log/daemon.log Jun 20 16:57:17 Darkstar cdemud[3527]: Starting daemon in daemon mode with following parameters: Jun 20 16:57:17 Darkstar cdemud[3527]: open(/usr/var/run/cdemud.pid): No such file or directory Steps to reproduce: You would experience this bug with any program that uses libdaemon to create its pidfiles. These steps use cdemu-daemon to reproduce it: -Update filesystem to latest version (2009.01-2) if not done already (the /usr/var directory is no longer present in this version; this is what triggered the problem on my system) -Install cdemu-daemon -Attempt to start the daemon (sudo /etc/rc.d/cdemud start) -Notice that it fails to start -Check in /var/log/daemon.log and notice an error message like the second line quoted above Solution: I added the --localstatedir=/var option on the ./configure line in libdaemon's PKGBUILD and recompiled. cdemud, the program that manifested this problem on my system, now creates the pidfile in /var/run and it works as normal again. I've attached the modified PKGBUILD to this bug report. |
This task depends upon
Closed by Thayer Williams (thayer)
Sunday, 21 June 2009, 18:56 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks for the PKGBUILD...if only all our bugs could be solved so easily!
Sunday, 21 June 2009, 18:56 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks for the PKGBUILD...if only all our bugs could be solved so easily!
Comment by
Papadopoulos, Mihail (scarecrow) -
Sunday, 21 June 2009, 07:41 GMT
That PKGBUILD solves the problem for me. I have only a minor
regression, namely cdemu-daemon is not able to start anymore with
alsa as audio backend... but I guess this is not related to
libdaemon itself.