JDaemon: Difference between revisions
From Joomla! Documentation
Updated to r1448:247ba8d88526 |
m →User contributed notes: bad link repair |
||
| Line 93: | Line 93: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JDaemon]]</noinclude> | <noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JDaemon]]</noinclude> | ||
Revision as of 18:33, 29 August 2012
JDaemon
Description
Template:Description:JDaemon [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | isActive | Check to see if the daemon is active. |
| public | loadConfiguration | Load an object or array into the application configuration object. |
| public | restart | Restart daemon process. |
| public | start | Spawn daemon process. |
| public | stop | Stop daemon process. |
| public static | signal | Method to handle POSIX signals. |
| protected | __construct | Class constructor. |
| protected | changeIdentity | Method to change the identity of the daemon process and resources. |
| protected | daemonize | Method to put the application into the background. |
| protected | fork | This is truly where the magic happens. |
| protected | gc | Method to perform basic garbage collection and memory management in the sense of clearing the stat cache. |
| protected | setupSignalHandlers | Method to attach the signal handler to the known signals. |
| protected | shutdown | Method to shut down the daemon and optionally restart it. |
| protected | writeProcessIdFile | Method to write the process id file out to disk. |
- Defined in libraries/joomla/application/cli/daemon.php
- Extends JCli
Importing
jimport( 'joomla.application.cli.daemon' );
See also
JDaemon source code on BitBucket
Subpackage Application- Other versions of JDaemon
Template:SeeAlso:JDaemon [Edit See Also]
User contributed notes
<CodeExamplesForm />