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
Maintainers
- Kevin van Zonneveld (kvz) — lead, active
Dependencies
Required
- PHP (>= 5.1.2)
- PEAR Installer (>= 1.4.0)
Optional
- Log (>= 1.0)
Releases
- 1.0.0 (stable, 2012-03-13)
Release notes
License: New BSD License
System_Daemon v1.0.0
* Solve E_STRICT warnings and avoid errors thrown (but ignored) by autoloader, setOption and getDatadir. Fixes #18677
* Better handling of non-existing replacement vars.
* Adding log alert function as requested in #19101
* Use sleep vs usleep depending on input. Fixes #19121
* Added System_Daemon_OS driver for Arch Linux and template for Arch's rc.d script
* Removed System_Daemon_OS driver for BSD, No support in this release
* Added "status" argument to init.d Debian script
* Removed "--name $NAME" due to debian Lenny can't handle names longer than 15 characters
* Return original string if unable to replace var between { and }. Fixes #18561 where json was being printed
* Added warning about caps & long appNames. Those cause restarting issues - 1.0.0RC1 (beta, 2011-02-16)
- 0.10.3 (beta, 2010-05-04)
- 0.10.2 (beta, 2010-03-15)
- 0.10.1 (beta, 2010-02-24)
- 0.10.0 (beta, 2010-02-24)
- 0.9.2 (beta, 2009-09-02)
- 0.9.1 (beta, 2009-08-11)
- 0.9.0 (beta, 2009-08-10)
- 0.8.1 (alpha, 2009-05-08)
- 0.8.0 (alpha, 2009-04-25)
- 0.7.0 (alpha, 2009-03-24)
- 0.6.9 (alpha, 2009-02-18)
- 0.6.8 (alpha, 2009-02-17)
- 0.6.7 (alpha, 2009-02-15)
- 0.6.3 (alpha, 2009-02-12)
- 0.6.1 (alpha, 2009-02-10)
- 0.6.0 (alpha, 2009-02-08)
- 0.5.0 (alpha, 2008-10-26)
- 0.4.0 (alpha, 2008-06-04)
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #14230 | Closed | Req | 0.4.0 | 2008-06-24 | check for posix extension |
| #15891 | Closed | Doc | 2009-02-11 | End User Docs | |
| #15894 | Closed | Bug | 2009-02-12 | getAutoRunTemplate reads wrong path | |
| #15895 | Closed | Req | 2009-02-12 | RedHat Support | |
| #15926 | Closed | Bug | 2009-02-22 | can't pid file option setting | |
| #15927 | Closed | Bug | 2009-02-22 | can't pid file option setting | |
| #15929 | Bogus | Bug | 2009-02-22 | System_Daemon::restart(); | |
| #15991 | Closed | Req | 0.6.9 | 2009-03-07 | Handle SIGPIPE |
| #16135 | Closed | Req | 0.7.0 | 2009-04-21 | Suppressed errors get logged. |
| #16136 | Closed | Bug | 0.7.0 | 2009-04-22 | init.d stop does not work |
| #16144 | Bogus | Req | 0.7.0 | 2009-04-22 | Add ability to notify script of signals |
| #16414 | Bogus | Bug | 0.8.1 | 2009-07-07 | write to init.d failure |
| #16500 | Closed | Bug | 0.8.1 | 2009-08-08 | Daemon cannot be killed when not writing to log |
| #16511 | Closed | Bug | 0.9.0 | 2009-08-10 | Strange behaviour |
| #16638 | Closed | Req | 0.9.2 | 2009-09-24 | Possibility to add more signals |
| #16640 | Closed | Bug | CVS | 2009-09-24 | [PHP Error] pcntl_signal(): Error assigning signal [l:1110] |
| #16729 | Closed | Bug | 0.9.2 | 2009-10-23 | Weird install paths |
| #16730 | Closed | Req | 0.9.2 | 2009-10-23 | Spin off Log related code in System_Daemon |
| #16882 | Duplicate | Bug | Unknown | 2009-12-07 | logLocation and pear log |
| #16883 | Closed | Bug | Unknown | 2009-12-07 | logLocation and pear log |
| #16966 | Closed | Bug | 0.9.2 | 2010-01-04 | Warnings displayed |
| #16980 | Closed | Bug | 0.9.2 | 2010-01-08 | init.d script doesn't stop daemon |
| #16981 | Closed | Req | 0.9.2 | 2010-01-08 | One instance daemon only? |
| #17069 | Closed | Bug | 0.9.2 | 2010-02-05 | Annoying Typo |
| #17152 | Closed | Req | Unknown | 2010-02-24 | Log Configuration |
| #17168 | Closed | Bug | 0.10.1 | 2010-02-26 | embarrassed log message |
| #17169 | Bogus | Bug | 0.10.1 | 2010-02-26 | setting sigHanler |
| #17184 | Bogus | Bug | 0.10.1 | 2010-03-02 | Annoying notice |
| #17216 | Closed | Bug | 0.10.1 | 2010-03-12 | chgrp and chown require intval to operate correctly |
| #17224 | Closed | Bug | 0.10.1 | 2010-03-15 | Sig handler causes error |
| #17225 | Closed | Bug | 0.10.1 | 2010-03-15 | Sig handler dies due to possible incorrectly defined sighandler |
| #17254 | Closed | Bug | 0.10.2 | 2010-03-22 | Error assiging signal handler |
| #17263 | Closed | Bug | SVN | 2010-03-24 | minor mistake in examples/logparser.php |
| #17296 | Closed | Bug | 0.10.2 | 2010-04-06 | LOGGING error and SIGNAL names typed wrong |
| #17332 | Closed | Bug | 0.10.2 | 2010-04-21 | pcntl_signal returns false in php 5.3 |
| #17419 | Closed | Bug | 0.10.3 | 2010-05-20 | Non-static method System_Daemon::semantify() should not be called statically |
| #17426 | Duplicate | Bug | 0.10.3 | 2010-05-22 | Undefined Indexes |
| #17593 | Bogus | Bug | 0.10.3 | 2010-07-14 | If I put the daemon call inside a class, its destructor gets called |
| #17600 | Closed | Req | 0.10.3 | 2010-07-15 | Changing of homedirectory |
| #17634 | Bogus | Bug | 0.10.3 | 2010-07-27 | System_Daemon script couldn't daemonize on Zend Server platform |
| #17916 | Wont fix | Req | SVN | 2010-09-30 | UID and GID passed as string causes problem |
| #17917 | Bogus | Bug | SVN | 2010-09-30 | UID and GID passed as string causes problem |
| #17919 | Closed | Bug | 2010-09-30 | Crashes after 3 days | |
| #18036 | Closed | Bug | 0.10.3 | 2010-11-09 | Memleak in System_Daemon::info() |
| #18054 | Bogus | Bug | 0.10.3 | 2010-11-14 | Couldnt create pid-file |
| #18069 | Bogus | Bug | 0.10.3 | 2010-11-17 | err: Unable to change group of file '/var/run/sboardtoold' to 1000 [l:1425] |
| #18070 | Closed | Req | 0.10.3 | 2010-11-18 | Show a type of php error. |
| #18071 | Closed | Req | 0.10.3 | 2010-11-18 | Show line/file position when using pear log instance |
| #18087 | Closed | Req | 0.10.3 | 2010-11-29 | Use $this-> instead of self:: |
| #18380 | Bogus | Bug | 1.0.0RC1 | 2011-03-21 | Options error |
| #18394 | Bogus | Bug | 1.0.0RC1 | 2011-03-24 | service app_name status reporting wrong |
| #18561 | Closed | Bug | 1.0.0RC1 | 2011-05-25 | _ilog function incompatible with json_encode output |
| #18606 | Closed | Bug | 1.0.0RC1 | 2011-06-17 | setOption |
| #18659 | Closed | Bug | 1.0.0RC1 | 2011-07-10 | Fatal error during initial run |
| #18677 | Closed | Bug | 1.0.0RC1 | 2011-07-21 | System_Daemon_OS::factory() called statically |
| #18714 | Closed | Req | 1.0.0RC1 | 2011-08-08 | Ability to log json string |
| #18986 | Bogus | Bug | 1.0.0RC1 | 2011-11-14 | Undefined index: class in Line 963 |
| #19101 | Closed | Req | 1.0.0RC1 | 2011-12-06 | missing System_Daemon::alert() shortcut |
| #19121 | Closed | Bug | 1.0.0RC1 | 2011-12-10 | System_Daemon::iterate problem & fix |
| #19140 | Closed | Bug | 1.0.0RC1 | 2011-12-16 | PHP Warning regarding date and system timezone reliance |
| #19241 | Bogus | Bug | 1.0.0RC1 | 2012-01-23 | Error stop service in ubuntu |
| #19287 | Bogus | Bug | 1.0.0RC1 | 2012-02-10 | Weird autorun template |
| #19333 | Closed | Req | 1.0.0 | 2012-03-15 | Assignment in Condition |
| #19499 | Bogus | Bug | 1.0.0 | 2012-07-09 | run daemon via ssh hangs till Ctrl-C |
| #19577 | Closed | Bug | 1.0.0 | 2012-08-22 | SIG_BLOCK, SIG_UNBLOCK and SIG_SETMASK are treated as signal constants |
| #19589 | Closed | Bug | 1.0.0 | 2012-08-28 | setSigHandler() fails for these "string" signals |
| #19601 | Bogus | Bug | 1.0.0 | 2012-09-11 | PHP 5.3 - System_Daemon::writeAutoRun Error |
| #19607 | Closed | Bug | 1.0.0 | 2012-09-19 | Undefined variable: logLvl |
| #19634 | Bogus | Bug | 1.0.0 | 2012-10-03 | System_Daemon::restart() is unreliable! |
| #19792 | Bogus | Bug | 1.0.0 | 2013-01-16 | System_Daemon::_ilog function includes some unsafe index usage |
| #19915 | Closed | Bug | 1.0.0 | 2013-04-29 | _summon() result is not checked/returned |
| #19919 | Closed | Bug | 1.0.0 | 2013-04-29 | Add support for E_STRICT errors |
| #19958 | Closed | Bug | 1.0.0 | 2013-05-27 | a small bug on abbr() |
| #20062 | Closed | Bug | 1.0.0 | 2013-09-13 | Path pidfile should not require at 4 elements in path |
| #20951 | Open | Req | 1.0.0 | 2015-09-25 | Please upgrade version to latest git |
| #21041 | Open | Bug | 1.0.0 | 2016-03-16 | service status |