PHP Classes
elePHPant
Icontem

PHP Systemd Daemon Notify: Interact with Systemd Notification Deamon

Recommend this page to a friend!
  Info   View files Documentation   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-12-06 (22 days ago) RSS 2.0 feedNot enough user ratingsTotal: 151 This week: 1All time: 8,441 This week: 490Up
Version License PHP version Categories
systemd-notify 1.0.1GNU General Publi...7.1Unix, Systems administration, PHP 7
Description Author

This package allows PHP applications to interact with the Systemd Notification daemon.

It sends feedback to the Systemd daemon about the runtime status
of a service.

A service periodically sends watchdog (heartbeat) events to
Systemd's notification daemon. When the watchdog (heartbeat) events
stop, Systemd knows the service has a problem and can restart it.

This package provides classes to interact with the notification service by sending heartbeats.

Innovation Award
PHP Programming Innovation award winner
October 2017
Winner
Systemd Notification daemon.

It sends feedback to the Systemd daemon about the runtime status
of a service.

A service periodically sends watchdog (heartbeat) events to
Systemd's notification daemon. When the watchdog (heartbeat) events
stop, Systemd knows the service has a problem and can restart it.

This package provides classes to interact with the notification service by sending heartbeats.

Manuel Lemos
  Performance   Level  
Name: Andy Pieters <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Details

systemd-notify

Introduction

This package allows scripts launched by systemd to send information and heartbeats (watchdog events) to the systemd notification system.

Use this library if...

You have a script that is started as a service by systemd, and you want systemd to restart the service when it develops an error, or

You have a long running script and want to provide a status description viewable by the systemctl status myservice command.

Do not use this library if...

  • The system is not run by SystemD (e.g. FreeBSD, Windows, ...)
  • Your service is not going to be started by Systemd

In this library

Three classes are provided to interact with the notification service:

  1. Notify is the general purpose implementation.
  2. NotifyHeartbeat is ideal for applications that only send heartbeats
  3. NotifyFluent has the same methods as Notify but all the setters are fluent.

Examples

See the examples folder

  Files folder image Files  
File Role Description
Files folder imageexamples (1 directory)
Files folder imagesrc (6 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
Files folder imagelookupd (6 files)

  Files folder image Files  /  examples  /  lookupd  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file lookupd-start.php Aux. Auxiliary script
  Plain text file lookupd.php Class Class source
  Accessible without login Plain text file lookupd.service Data Auxiliary data
  Accessible without login Plain text file README.md Doc. Documentation
  Accessible without login Plain text file test-lookup.php Aux. Auxiliary script

  Files folder image Files  /  src  
File Role Description
  Plain text file NotifierError.php Class Class source
  Plain text file Notify.php Class Class source
  Plain text file NotifyBase.php Class Class source
  Plain text file NotifyFluent.php Class Class source
  Plain text file NotifyHeartbeat.php Class Class source
  Plain text file SystemdNotifierInterface.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:151
This week:1
All time:8,441
This week:490Up