Search by

mekras / php-systemd

Mekras

Object-oriented PHP interface to systemd

Package info

github.com/mekras/php-systemd

pkg:composer/mekras/php-systemd

Statistics

Installs: 100 533

Dependents: 0

Suggesters: 0

Stars: 8

Open Issues: 1

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

This package is auto-updated.

Last update: 2026-11-13 18:01:19 UTC


README

Object-oriented interface to systemd.

Latest Stable Version License Build Status Coverage Status

Maintenance status

This project is no longer maintained and is archived for historical reference. No further updates or fixes, including security fixes, are planned. Compatibility with current PHP and systemd versions has not been verified. The documentation and examples below describe the historical version.

Watchdog

systemd watchdog restarts frozen service.

use Mekras\SystemD\SystemD;

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

//...

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