trakosoft/systemd-notify
Composer 安装命令:
composer require trakosoft/systemd-notify
包简介
Interact with the Systemd Notify daemon for service lifecycle integration. A PHP 8 fork of aethalides/systemd-notify
README 文档
README
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:
- Notify is the general purpose implementation.
- NotifyHeartbeat is ideal for applications that only send heartbeats
- NotifyFluent has the same methods as Notify but all the setters are fluent.
Examples
See the examples folder
统计信息
- 总下载量: 64
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2023-10-19