Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-30T20:14:24.000Z (about 14 years ago)
- Last Synced: 2023-03-11T08:41:13.867Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 102 KB
- Stars: 7
- 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).