Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.68 KB

README.md

File metadata and controls

74 lines (51 loc) · 1.68 KB

Erlang systemd-notify

Erlang module for native access to the systemd-notify facilities.

Build status: Build Status

Installation

On Fedora/CentOS

    rpm -i erlang-sd_notify-{version}-1.el7.centos.x86_64.rpm

On Debian/Ubuntu

    dpkg -i erlang-sd-notify_{version}-1_amd64.deb

On openSUSE/SLES distributions

You can install the package using the openSUSE repositories

For example for Leap15:

sudo zypper addrepo -f https://download.opensuse.org/repositories/network:/messaging:/amqp/openSUSE_Leap_15/network:messaging:amqp.repo
sudo zypper --gpg-auto-import-keys refresh
sudo zypper install erlang-sd_notify

Build from source using Docker

Ubuntu

    docker build -t build_ubuntu_{version} docker/ubuntu_{version}/
    docker run -v {sd_notify_dir}:/home/sd/ build_ubuntu_{version} /bin/sh -c "cd /home/sd/; make deb"

Centos

    docker build -t build_centos_{version} docker/centos_{version}/
    docker run -v {sd_notify_dir}:/home/sd/ build_centos_{version} /bin/sh -c "cd /home/sd/; make rpm"

Example

    docker build -t build_ubuntu_19 docker/ubuntu_19/
    docker run -v /home/gabriele/erlang-sd_notify:/home/sd/ build_ubuntu_19 /bin/sh -c "cd /home/sd/; make all"

Download Binaries

Github Repository

Usage

Quick example:

    [root@a499ee66251a]# erl
    ...
    1> sd_notify:sd_notify(0,"READY=1").
    0