Library for managing daemon systems using PHP
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
library
tests
.gitignore
README.textile

README.textile

About

Respect\Daemon is PHP component to create and manage deamons using OS specific tools.

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);

Linux

Manages upstart (http://upstart.ubuntu.com) scripts and cron jobs.

Windows

Manager windows services using the Windows Service Management API (through the win32service PECL extension).