https://github.com/alganet/daemon_deprecated
Library for managing daemon systems using PHP
https://github.com/alganet/daemon_deprecated
Last synced: 3 months ago
JSON representation
Library for managing daemon systems using PHP
- Host: GitHub
- URL: https://github.com/alganet/daemon_deprecated
- Owner: alganet
- Created: 2010-09-28T19:26:49.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-11-30T20:14:24.000Z (over 14 years ago)
- Last Synced: 2025-03-25T00:41:31.362Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 102 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h2. About
Respect\Daemon is PHP component to create and manage deamons using OS specific tools.
h3. Sample Usage (not working yet)
use Respect\Daemon;
use Respect\Deamon\Manager as d;
$d = d::getInstance();
$d->all(); //list all jobs
$mongodb = $d->get("mongodb"); //get single job
$d->start($mongodb);
$d->status($mongodb);
$d->stop($mongodb);
$d->remove($mongodb); //remove from operating system
$myd = new Deamon\Job("myd");
$myd->setMain('/usr/bin/my/path');
$d->save($myd); //save job to operating system
$d->start($myd);h3. Linux
Manages upstart (http://upstart.ubuntu.com) scripts and cron jobs.
h3. Windows
Manager windows services using the Windows Service Management API (through the win32service PECL extension).