Edit report at https://pear.php.net/bugs/bug.php?id=20062&edit=1
ID: 20062
Updated by: kvz@php.net
Reported By: info@metashock.net
Summary: Path pidfile should not require at 4 elements in path
-Status: Open
+Status: Bogus
Type: Bug
Package: System_Daemon
Operating System: Ubuntu
Package Version: 1.0.0
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
-Status: Open
+Status: Bogus
Sorry, but your problem does not imply a bug in PEAR itself. For a
list of more appropriate places to ask for help using PEAR, please
visit http://pear.php.net/support/ as this bug system is not the
appropriate forum for asking support questions.
Thank you for your interest in PEAR.
You should use a full path for appPidFileLocation. "It's own directory",
just means
/var/run/<simple>/simple.pid vs /var/run/<simple>.pid
Previous Comments:
------------------------------------------------------------------------
[2013-09-13 16:38:48] hek2mgl
Description:
------------
I've just git cloned the package and wanted to run example/simple.php as
a normal user not root. Of course the sample complained on the first try
as it could not write to log and pidfile as there are per default would
been written to /var/log/simple.log or /var/run/simple/simple.pid.
I then tried to set the logLocation to `./test.log` and the
appPidFileLocation to `test.pid`.
I got an error err: Since version 0.6.3, the pidfile needs to be in it's
own subdirectory like: %s/simple/simple.pid [l:1463]
and ended up to configure the path like:
System_Daemon::setOption("appPidLocation",
"pid/simple/simple/simple/simple");
what looks really weird. The problem is caused by System/Daemon.php line
1458.
Is there any logic behind this?
Test script:
---------------
I just used examples/simple.php
Expected result:
----------------
Possibility to configure appPidLocation like './simple.pid'
Actual result:
--------------
Since version 0.6.3, the pidfile needs to be in it's own subdirectory
like: %s/simple/simple.pid [l:1463]
------------------------------------------------------------------------