PHP Classes
Icontem

Class: clsDaemonize


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Marjos  >  clsDaemonize  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: clsDaemonize Support forum
Base name: clsdaemonize
Description: Create and manage daemon processes on Unix systems
Related top rated classes: ,
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
All time users: 1497 users
All time rank: 1793
Week users: 0 users
Week rank: 3552
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Daniel Marjos
Name: Daniel Marjos is available for providing paid consulting. Contact Daniel Marjos .
Published packages: 12 Browse this author's classes Browse this author's classes
Country: Argentina Argentina - PHP jobs in Argentina
Home page: http://www.ciudad-eolica.com.ar/
Age: 39
All time rank: 15
Week rank: 163

Innovation Award

PHP Programming Innovation award nominee
June 2004
Number 7
A daemon is what are usually called the programs that run on their own under Unix/Linux based systems.

Thy usually implement services of handling events that may occur any time. Examples of daemon services include network connection handlers, mail processors, print spoolers, etc..

This class provides a solution that simplifies the implementation common details of operation of daemons, like being able to detach from the shell process that started it and so not end even if the starting process exits, assure that only one copy of the same daemon is running, handle signals that request termination, etc..

Even though running daemon scripts is not the a common use of PHP, this class simplifies the development of new useful daemons that may enhance the value of many PHP applications.

Manuel Lemos

Groups

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

Detailed description

This class is intended to automate the creation of system daemons proceses under Unix like operating systems or those with POSIX compliant API like Linux, OpenBSD, FreeBSD, Solaris, Mac OS X, etc...

It can fork a new process using the PHP pcntl extension and detach from the starting shell so it can exit without killing the daemon process.

It can maintain a file that stores the daemon process identifier to prevent that more than one copy of the daemon is started.

It also creates a log file to register the daemon activity.

It is also possible register PHP callback functions to handle different types of signals.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Sufficient (75.0%)
-
Not sure (54.2%)
-
-
Not sure (50.4%)
1294
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

File Role Description
Plain text file clsDaemonize.php Class Main Class file
Plain text file test_daemon.php Example Example Script
Download all files: clsdaemonize.tar.gz clsdaemonize.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products