System_Daemon
[ class tree: System_Daemon ] [ index: System_Daemon ] [ all elements ]

Source for file bug_test_b.php

Documentation is available at bug_test_b.php

  1. #!/usr/bin/php -q
  2. <?php
  3.  
  4. // Make it possible to test in source directory
  5. // This is for PEAR developers only
  6. ini_set('include_path'ini_get('include_path').':..');
  7.  
  8. // Include Class
  9.  
  10. // Start System Daemon (PEAR)
  11. require_once "System/Daemon.php";
  12.  
  13. // Allowed arguments & their defaults
  14. $runmode = array(
  15.     "no-daemon"     => true,
  16.     "help"             => false,
  17.     "write-initd"     => false
  18. );
  19.  
  20. // Options
  21. $options = array(
  22.     'appName'                 => 'queue_test',
  23.     'appDir'                 => dirname(__FILE__),
  24.     'sysMaxExecutionTime'     => '0',
  25.     'sysMaxInputTime'         => '0',
  26.     'sysMemoryLimit'         => '1024M'
  27. );
  28.  
  29. // Overrule the signal handler with any function
  30. System_Daemon::setSigHandler(SIGCONTarray("System_Daemon""defaultSigHandler"));
  31.  

Documentation generated on Mon, 11 Mar 2019 15:47:42 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.