Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 746 Bytes

README.textile

File metadata and controls

29 lines (22 loc) · 746 Bytes

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