Bug #15927 [Opn->Bgs]: can't pid file option setting
| From: | kevin at vanzonneveld dot net | Date: | Sun, 22 Feb 2009 21:59:31 +0000 |
| Subject: | Bug #15927 [Opn->Bgs]: can't pid file option setting | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-65@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15927&edit=1
ID: 15927
Updated by: kevin@vanzonneveld.net
Reported By: neta-master at ywcafe dot net
Summary: can't pid file option setting
-Status: Open
+Status: Bogus
Type: Bug
Package: System_Daemon
Operating System: Linux
PHP Version: 5.2.5
Roadmap Versions:
New Comment:
<div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Bogus</span>
</div>
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.
Thank you for your interest in PEAR.
We'll continue here: http://pear.php.net/bugs/bug.php?id=15926
Previous Comments:
------------------------------------------------------------------------
[2009-02-22 09:37:14] neta
Description:
------------
Is this a bug ? or my code is wrong?
Test script:
---------------
<?php
require_once("System/Daemon.php");
System_Daemon::setOption("appName", "mydaemon");
System_Daemon::setOption("appPidLocation", "/tmp/mydaemon.pid");
System_Daemon::setOption("logLocation", "/tmp/mydaemon.log");
System_Daemon::start(); //
?>
Expected result:
----------------
(No error occur)
Actual result:
--------------
$ php daemon.php
[Feb 22 18:33:05] info: starting mydaemon daemon, output in:
/tmp/mydaemon.log
PHP Fatal error: Uncaught System_Daemon_Exception: [Feb 22 18:33:05]
emerg: mydaemon daemon was unable to write pid file [l:959] in
/usr/local/lib/php/System/Daemon.php on line 959
#0 /usr/local/lib/php/System/Daemon.php(959): System_Daemon::log(0,
'mydaemon daemon...')
#1 /usr/local/lib/php/System/Daemon.php(457): System_Daemon::_summon()
#2 /home/watanabe/tmp/daemon.php(6): System_Daemon::start()
#3 {main}
thrown in /usr/local/lib/php/System/Daemon.php on line 701
Fatal error: Uncaught System_Daemon_Exception: [Feb 22 18:33:05]
emerg: mydaemon daemon was unable to write pid file [l:959] in
/usr/local/lib/php/System/Daemon.php on line 959
#0 /usr/local/lib/php/System/Daemon.php(959): System_Daemon::log(0,
'mydaemon daemon...')
#1 /usr/local/lib/php/System/Daemon.php(457): System_Daemon::_summon()
#2 /home/watanabe/tmp/daemon.php(6): System_Daemon::start()
#3 {main}
thrown in /usr/local/lib/php/System/Daemon.php on line 701
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=15927&edit=1