Login   Register  
PHP Classes
elePHPant
Icontem

Daemon

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Michal Golebiowski
Name: Michal Golebiowski <e-mail contact>
Packages: 2 Browse all classes by Michal Golebiowski Browse all classes by
Country: Poland Poland - PHP jobs in Poland
Age: 30
All time rank: 3624 in Poland Poland
Week rank: 874 Down24 in Poland Poland Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This package provides a base class that can create and manage daemon processes on Linux or other Unix-like systems.

This base class can fork the current process and store the child process identifier in a pid file. The forked process enters an infinite loop executing its job until it receives a termination signal.

The base class is not useful by itself. It needs to be derived to implement daemon job as a function of the sub-class. A daemon job subclass is provided as an example.

  Classes of Michal Golebiowski  >  Daemon  >  Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Daemon
Base name: daemon
Description: Create and control Unix daemon processes
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 4025 users
All time rank: 654
Week users: 0 users
Week rank: 2151 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Unix Use of capabilities specific of POSIX, Unix like operating systems View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
March 2005
Number 2

Prize: One copy of the Zend Studio
Many sites need to run background tasks to execute the jobs that are important for their operation, like for instance, process incoming e-mail, deliver newsletters and other kinds of mailings, monitor the usage of resources, cleanup or backup information, etc..

Some background tasks need to run continually in order to provide a prompt response to events that may happen anytime. Under Linux and other Unix-like systems the programs that run continually to perform this kind of tasks are called daemons.

This class simplifies the creation and management of daemon processes making them work like common Unix daemon programs by, among other things, storing the daemon process in a file and cleanup and exit when receiving the termination signal.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (90.0%)
Good (82.5%)
-
Sufficient (77.5%)
-
-
Sufficient (61.0%)
774
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file Daemon.class.php Class Daemon base class
Plain text file test.php Example Main test file
Plain text file TestDaemon.class.php Example Test daemon

Download all files: daemon.tar.gz daemon.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.