Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 952 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 952 Bytes

php-systemd

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();
    }
    //...
}