2017 © Pedro Peláez
 

library systemd-notify

Interact with the Systemd Notify daemon for service lifecycle integration

image

aethalides/systemd-notify

Interact with the Systemd Notify daemon for service lifecycle integration

  • Sunday, October 29, 2017
  • by Aethalides
  • Repository
  • 0 Watchers
  • 2 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

systemd-notify

Introduction

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

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, (*2)

You have a long running script and want to provide a status description viewable by the systemctl status myservice command., (*3)

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:, (*4)

  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, (*5)

The Versions

29/10 2017

dev-master

9999999-dev

Interact with the Systemd Notify daemon for service lifecycle integration

  Sources   Download

GPLv3 GPL-3.0

The Requires

  • php >=7.1.0
  • ext-sockets *

 

by Avatar Aethalides