Bug #15926 [Fbk]: can't pid file option setting

From: Date: Sun, 22 Feb 2009 22:04:29 +0000
Subject: Bug #15926 [Fbk]: can't pid file option setting
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-67@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=15926&edit=1 ID: 15926 Updated by: kevin@vanzonneveld.net Reported By: neta-master at ywcafe dot net Summary: can't pid file option setting Status: Feedback Type: Bug Package: System_Daemon Operating System: Linux PHP Version: 5.2.5 -Assigned To: +Assigned To: kvz Roadmap Versions: New Comment: <div id="changeset"> <span class="removed">-Assigned To:</span> <span class="added">+Assigned To: kvz</span> </div> Previous Comments: ------------------------------------------------------------------------ [2009-02-22 22:04:16] kvz <div id="changeset"> <span class="removed">-Status: Open</span> <span class="added">+Status: Feedback</span> </div> Thank you for taking the time to report a problem with the package. Unfortunately you are not using a current version of the package -- the problem might already be fixed. Please download a new version from http://pear.php.net/packages.php If you are able to reproduce the bug with one of the latest versions, please change the package version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PEAR. The most recent version of System_Daemon should give the error: Since version 0.6.3, the pidfile needs to be in it's own subdirectory like: /tmp/mydaemon/mydaemon.pid [l:961] in /home/kevin/workspace/plutonia-system_daemon/System/Daemon.php on line 961 So this indicates that you're not using the latest version. Please upgrade, place the .pid in it's own subdirectory and try again. If it still fails reopen this issue. ------------------------------------------------------------------------ [2009-02-22 09:36:37] 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=15926&edit=1

« previous php.pear.bugs (#67) next »