PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » System » System_Daemon

Turn PHP scripts into Linux daemons

This package is unmaintained.

Download latest release 1.0.0 (there might be newer Composer installable version)

License: New BSD License

Description

System_Daemon is a PHP class that allows developers to create their own daemon
applications on Linux systems. The class is focussed entirely on creating &
spawning standalone daemons, and for example includes:

1. Methods to generate OS-specific startup-files (init.d) (currently only
Debian/Ubuntu are supported), so that your application gets started on
reboot as well.
2. Methods for logging purposes, also support for PEAR's Log package
3. Simple syntax
5. Can run with or without PEAR (PEAR adds more elegance & functionality,
no-PEAR offers functionality like including system_daemon with svn:externals
and reduced dependencies)
6. Default signal handlers, but optionally reroute signals to your own
handlers.
7. Set options like max RAM usage

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#14230ClosedReq0.4.02008-06-24check for posix extension
#15891ClosedDoc2009-02-11End User Docs
#15894ClosedBug2009-02-12getAutoRunTemplate reads wrong path
#15895ClosedReq2009-02-12RedHat Support
#15926ClosedBug2009-02-22can't pid file option setting
#15927ClosedBug2009-02-22can't pid file option setting
#15929BogusBug2009-02-22System_Daemon::restart();
#15991ClosedReq0.6.92009-03-07Handle SIGPIPE
#16135ClosedReq0.7.02009-04-21Suppressed errors get logged.
#16136ClosedBug0.7.02009-04-22init.d stop does not work
#16144BogusReq0.7.02009-04-22Add ability to notify script of signals
#16414BogusBug0.8.12009-07-07write to init.d failure
#16500ClosedBug0.8.12009-08-08Daemon cannot be killed when not writing to log
#16511ClosedBug0.9.02009-08-10Strange behaviour
#16638ClosedReq0.9.22009-09-24Possibility to add more signals
#16640ClosedBugCVS2009-09-24[PHP Error] pcntl_signal(): Error assigning signal [l:1110]
#16729ClosedBug0.9.22009-10-23Weird install paths
#16730ClosedReq0.9.22009-10-23Spin off Log related code in System_Daemon
#16882DuplicateBugUnknown2009-12-07logLocation and pear log
#16883ClosedBugUnknown2009-12-07logLocation and pear log
#16966ClosedBug0.9.22010-01-04Warnings displayed
#16980ClosedBug0.9.22010-01-08init.d script doesn't stop daemon
#16981ClosedReq0.9.22010-01-08One instance daemon only?
#17069ClosedBug0.9.22010-02-05Annoying Typo
#17152ClosedReqUnknown2010-02-24Log Configuration
#17168ClosedBug0.10.12010-02-26embarrassed log message
#17169BogusBug0.10.12010-02-26setting sigHanler
#17184BogusBug0.10.12010-03-02Annoying notice
#17216ClosedBug0.10.12010-03-12chgrp and chown require intval to operate correctly
#17224ClosedBug0.10.12010-03-15Sig handler causes error
#17225ClosedBug0.10.12010-03-15Sig handler dies due to possible incorrectly defined sighandler
#17254ClosedBug0.10.22010-03-22Error assiging signal handler
#17263ClosedBugSVN2010-03-24minor mistake in examples/logparser.php
#17296ClosedBug0.10.22010-04-06LOGGING error and SIGNAL names typed wrong
#17332ClosedBug0.10.22010-04-21pcntl_signal returns false in php 5.3
#17419ClosedBug0.10.32010-05-20Non-static method System_Daemon::semantify() should not be called statically
#17426DuplicateBug0.10.32010-05-22Undefined Indexes
#17593BogusBug0.10.32010-07-14If I put the daemon call inside a class, its destructor gets called
#17600ClosedReq0.10.32010-07-15Changing of homedirectory
#17634BogusBug0.10.32010-07-27System_Daemon script couldn't daemonize on Zend Server platform
#17916Wont fixReqSVN2010-09-30UID and GID passed as string causes problem
#17917BogusBugSVN2010-09-30UID and GID passed as string causes problem
#17919ClosedBug2010-09-30Crashes after 3 days
#18036ClosedBug0.10.32010-11-09Memleak in System_Daemon::info()
#18054BogusBug0.10.32010-11-14Couldnt create pid-file
#18069BogusBug0.10.32010-11-17err: Unable to change group of file '/var/run/sboardtoold' to 1000 [l:1425]
#18070ClosedReq0.10.32010-11-18Show a type of php error.
#18071ClosedReq0.10.32010-11-18Show line/file position when using pear log instance
#18087ClosedReq0.10.32010-11-29Use $this-> instead of self::
#18380BogusBug1.0.0RC12011-03-21Options error
#18394BogusBug1.0.0RC12011-03-24service app_name status reporting wrong
#18561ClosedBug1.0.0RC12011-05-25_ilog function incompatible with json_encode output
#18606ClosedBug1.0.0RC12011-06-17setOption
#18659ClosedBug1.0.0RC12011-07-10Fatal error during initial run
#18677ClosedBug1.0.0RC12011-07-21System_Daemon_OS::factory() called statically
#18714ClosedReq1.0.0RC12011-08-08Ability to log json string
#18986BogusBug1.0.0RC12011-11-14Undefined index: class in Line 963
#19101ClosedReq1.0.0RC12011-12-06missing System_Daemon::alert() shortcut
#19121ClosedBug1.0.0RC12011-12-10System_Daemon::iterate problem & fix
#19140ClosedBug1.0.0RC12011-12-16PHP Warning regarding date and system timezone reliance
#19241BogusBug1.0.0RC12012-01-23Error stop service in ubuntu
#19287BogusBug1.0.0RC12012-02-10Weird autorun template
#19333ClosedReq1.0.02012-03-15Assignment in Condition
#19499BogusBug1.0.02012-07-09run daemon via ssh hangs till Ctrl-C
#19577ClosedBug1.0.02012-08-22SIG_BLOCK, SIG_UNBLOCK and SIG_SETMASK are treated as signal constants
#19589ClosedBug1.0.02012-08-28setSigHandler() fails for these "string" signals
#19601BogusBug1.0.02012-09-11PHP 5.3 - System_Daemon::writeAutoRun Error
#19607ClosedBug1.0.02012-09-19Undefined variable: logLvl
#19634BogusBug1.0.02012-10-03System_Daemon::restart() is unreliable!
#19792BogusBug1.0.02013-01-16System_Daemon::_ilog function includes some unsafe index usage
#19915ClosedBug1.0.02013-04-29_summon() result is not checked/returned
#19919ClosedBug1.0.02013-04-29Add support for E_STRICT errors
#19958ClosedBug1.0.02013-05-27a small bug on abbr()
#20062ClosedBug1.0.02013-09-13Path pidfile should not require at 4 elements in path
#20951OpenReq1.0.02015-09-25Please upgrade version to latest git
#21041OpenBug1.0.02016-03-16service status