PHP Class Scalr\System\Zmq\Cron\PidFile

Since: 5.0 (22.09.2014)
Author: Vitaliy Demidov ([email protected])
Inheritance: use trait Scalr\LoggerAwareTrait
Mostra file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$pidExistLevel string The level of the message when pid does exist

Public Methods

Method Description
__construct ( string $file, string $command ) Constructor
check ( ) : integer | boolean Checks pid
create ( ) Creates pid file
remove ( ) Removes pid file

Method Details

__construct() public method

Constructor
public __construct ( string $file, string $command )
$file string Path to PID file
$command string Command to check process

check() public method

Checks pid
public check ( ) : integer | boolean
return integer | boolean Returns PID if it's found, or false otherwise

create() public method

It performs pid file check itself
public create ( )

remove() public method

Removes pid file
public remove ( )

Property Details

$pidExistLevel public_oe property

The level of the message when pid does exist
public string $pidExistLevel
return string