mekras / php-systemd
Object-oriented PHP interface to systemd
Installs: 68 988
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 4
Forks: 1
Open Issues: 1
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: ^4.8
- satooshi/php-coveralls: ^1.0
This package is auto-updated.
Last update: 2024-11-29 05:09:28 UTC
README
Object-oriented interface to systemd.
Watchdog
systemd watchdog restarts frozen service.
use Mekras\SystemD\SystemD; $systemd = new SystemD(); $keepAlive = $systemd->watchdog()->isEnabled(); //... while (true) { if ($keepAlive) { $systemd->watchdog()->ping(); } //... }