mekras/php-systemd

Object-oriented PHP interface to systemd

v0.1 2016-04-18 15:00 UTC

This package is auto-updated.

Last update: 2024-10-29 05:04:42 UTC


README

Object-oriented interface to systemd.

Latest Stable Version License Build Status Coverage Status

Watchdog

systemd watchdog restarts frozen service.

use Mekras\SystemD\SystemD;

$systemd = new SystemD();
$keepAlive = $systemd->watchdog()->isEnabled();

//...

while (true) {
    if ($keepAlive) {
        $systemd->watchdog()->ping();
    }
    //...
}