systemd_notify

Version, currently 0.1.34 versions

github.com/mearsten/systemd_notify.cr

Sends startup and periodical notifications to systemd

1 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  systemd_notify:
    github: mearsten/systemd_notify.cr
    version: ~> 0.1.3

Then run:

shards install

shard.yml

Crystal
>= 0.35.1
License
MIT
Author
Serge Pokhodyaev

Dependencies

This version declares no dependencies.

README

systemd_notify.cr

Sends startup and periodical notifications to systemd

How to use

require "systemd_notify"

SystemdNotify.new.ready

This code sends a startup notification to systemd. If a watchdog has been enabled it also starts a separate fiber that sends periodical messages to systemd.