mekras / php-systemd
Object-oriented PHP interface to systemd
Installs: 67 221
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-10-29 05:04:42 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(); } //... }