FAQ
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]

------------------------------------------------------------------------

Search Discussions

  • Hek2mgl at Sep 16, 2013 at 11:04 am
    Edit report at https://pear.php.net/bugs/bug.php?id=20062&edit=1

      ID: 20062
      Updated by: hek2mgl@metashock.net
      Reported By: info@metashock.net
      Summary: Path pidfile should not require at 4 elements in path
    -Status: Bogus
    +Status: Open
      Type: Bug
      Package: System_Daemon
      Operating System: Ubuntu
      Package Version: 1.0.0
      PHP Version: Irrelevant
      Roadmap Versions:
      New Comment:

    -Status: Bogus
    +Status: Open
    Have you tried your "workaround"? It will not work and therefore it is a
    bug.

    First it is `appPidLocation` and not `appPidFileLocation`. Please try
    to execute `/examples/simple.php` with the following setting:

    System_Daemon::setOption("appPidLocation", "/tmp/simple.pid"); // Error
    System_Daemon::setOption("appPidLocation", "/tmp/simple/simple.pid"); //
    Error

    System_Daemon::setOption("appPidLocation",
    "/tmp/simple/simple/simple.pid"); // Works

    As I said the package requires that the path to the pidfile requires at
    least 4 components what is a bug.


    Previous Comments:
    ------------------------------------------------------------------------

    [2013-09-16 12:12:26] kvz

    -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

    ------------------------------------------------------------------------

    [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]

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 16, '13 at 10:06a
activeSep 16, '13 at 11:04a
posts2
users2
websitepear.php.net

2 users in discussion

Hek2mgl: 1 post Kvz: 1 post

People

Translate

site design / logo © 2022 Grokbase