PHP Class Scalr\System\Zmq\Cron\PidFile

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

Méthodes publiques

Свойство Type Description
$pidExistLevel string The level of the message when pid does exist

Méthodes publiques

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

Method Details

__construct() public méthode

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

check() public méthode

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

create() public méthode

It performs pid file check itself
public create ( )

remove() public méthode

Removes pid file
public remove ( )

Property Details

$pidExistLevel public_oe property

The level of the message when pid does exist
public string $pidExistLevel
Résultat string