Pman_Module

+------------------------------------------------------------+ | apnscp | +------------------------------------------------------------+ | Copyright (c) Apis Networks | +------------------------------------------------------------+ | Licensed under Artistic License 2.0 | +------------------------------------------------------------+ | Author: Matt Saladna (msaladna@apisnetworks.com) | +------------------------------------------------------------+
extends Module\Skeleton\Standard
Methods Summary
public
public
# kill( int $pid )
Terminal a process with SIGKILL
public
# signal( int $pid , int $signal = 9 )
Send a POSIX signal a process
public
# stat( int $pid )
Stat a running process
public
# pcount( )
Get active process count Count is fetched from cache. {@see \flush} may be necessary
public
# flush( )
Flush process accumulator cache
public
# get_processes( )
Get all processes
public
# run( string $cmd , array $args = NULL, array $env = NULL, array $options = array ( ) )
Run a process Sample response: Array ( [stdin] => [stdout] => Hello World!!! [0] => Hello World!!! [stderr] => [1] => [output] => Hello World!!! [errno] => 0 [return] => 0 [error] => [success] => 1 )
public
# schedule_api_cmd( $cmd , array|null $args = array ( ), string $when = 'now' )
Background an apnscp function with an optional delay
Methods inherited from Module\Skeleton\Standard
__construct(), set_user_parameters(), clean_user_parameters(), set_session_id(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), get_service_names(), get_services(), get_new_services(), get_active_services(), get_config(), get_service_value(), set_config_journal(), set_config(), query(), _resetModule()
Constants Summary
public string PROC_PATH
# '/proc'
public string PROC_CACHE_KEY
# 'pman.all'
public int MAX_WAIT_TIME
# 300
public int _NSIG
# 65
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
public $exportedFunctions
# array ( '*' => 15, 'schedule_api_cmd_admin' => 8, )
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id, $pgsql, $mysql