Skip to content

mekras/php-systemd

Repository files navigation

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

About

Object-oriented PHP interface to systemd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages