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

File: signals.php

Source Location: /System_Daemon-1.0.0/examples/signals.php


Page Details:

System_Daemon turns PHP-CLI scripts into daemons.

PHP version 5


require_once('System/Daemon.php') [line 39]
System_Daemon Example Code

If you run this code successfully, a daemon will be spawned but unless have already generated the init.d script, you have no real way of killing it yet.

In this case wait 3 runs, which is the maximum for this example.

In panic situations, you can always kill you daemon by typing

killall -9 signals.php OR: killall -9 php

myHandler [line 58]

void myHandler( $signal)


[ Top ]

Documentation generated on Tue, 13 Mar 2012 12:30:12 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.