Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0

Bug #15927 can't pid file option setting
Submitted: 2009-02-22 14:37 UTC
From: neta Assigned: kvz
Status: Closed Package: System_Daemon
PHP Version: 5.2.5 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 28 - 5 = ?

 
 [2009-02-22 14:37 UTC] neta (neta wat)
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

Comments

 [2009-02-23 02:59 UTC] kvz (Kevin van Zonneveld)
-Status: Open +Status: Bogus
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
 [2009-02-23 20:35 UTC] kvz (Kevin van Zonneveld)
-Status: Bogus +Status: Closed -Assigned To: +Assigned To: kvz