Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • PHP
  • Yiinitializr
    • Cli
    • Clio
    • Composer
    • Helpers

Classes

  • Daemon

Class Daemon

Daemon provides helpers for starting and killing daemonized processes

Namespace: Yiinitializr\Clio
Package: Yiinitializr\Cli
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Since: 1.0
Located at Cli/Daemon.php

Methods summary

public static boolean
# work( array $options, Closure $callable )

Daemonize a Closure object.

Daemonize a Closure object.

Parameters

$options
array
$options Set of options
$callable
callable
$callable Closure object to daemonize

Returns

boolean
True on success

Throws

Exception
public static boolean
# isRunning( mixed $file )

Whether a process is running or not

Whether a process is running or not

Parameters

$file
mixed
$file

Returns

boolean

Throws

Exception
public static boolean
# kill( mixed $file, boolean $delete = false )

Kills a daemon process specified by its PID file.

Kills a daemon process specified by its PID file.

Parameters

$file
mixed
$file Daemon PID file
$delete
boolean
$delete Flag to delete PID file after killing

Returns

boolean
True on success, false otherwise

Throws

Exception

Magic methods summary

API documentation generated by ApiGen 2.8.0