mekras / php-systemd
Object-oriented PHP interface to systemd
v0.1
2016-04-18 15:00 UTC
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: ^4.8
- satooshi/php-coveralls: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-13 18:01:19 UTC
README
Object-oriented interface to systemd.
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(); } //... }