Skip to content

Object-oriented PHP interface to systemd

License

Notifications You must be signed in to change notification settings

arren-ru/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

  • PHP 100.0%