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

File: logparser.php

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

Classes:

Page Details:

System_Daemon turns PHP-CLI scripts into daemons.

PHP version 5

Includes:

require_once('System/Daemon.php') [line 64]
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 logparser.php OR: killall -9 php


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