PHP Класс Scalr\System\Zmq\Cron\PidFile

С версии: 5.0 (22.09.2014)
Автор: Vitaliy Demidov ([email protected])
Наследование: use trait Scalr\LoggerAwareTrait
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$pidExistLevel string The level of the message when pid does exist

Открытые методы

Метод Описание
__construct ( string $file, string $command ) Constructor
check ( ) : integer | boolean Checks pid
create ( ) Creates pid file
remove ( ) Removes pid file

Описание методов

__construct() публичный Метод

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

check() публичный Метод

Checks pid
public check ( ) : integer | boolean
Результат integer | boolean Returns PID if it's found, or false otherwise

create() публичный Метод

It performs pid file check itself
public create ( )

remove() публичный Метод

Removes pid file
public remove ( )

Описание свойств

$pidExistLevel публичное свойство

The level of the message when pid does exist
public string $pidExistLevel
Результат string