summaryrefslogtreecommitdiff
path: root/README.md
blob: f3e6e1e0afd287884cfeb4bf89a78b1258d1f9d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
`sd_notify` Erlang interface for Centos 7.
---

This add the `sd_notify` to the Centos erlang package.
I tested it starting for zero-dependencies RabbitMQ package ([github](https://github.com/rabbitmq/erlang-rpm) - [binany](https://www.rabbitmq.com/releases/erlang/) )

Build from source
-

* To build it execute the docker image.
* To add it to your package:

    `extract the tar.gz`  
    `mkdir -p /usr/lib64/erlang/lib/sd_notify-0.9/priv/`  
    `mkdir -p /usr/lib64/erlang/lib/sd_notify-0.9/ebin/`  
    `cp priv/* /usr/lib64/erlang/lib/sd_notify-0.9/priv/`  
    `cp ebin/* /usr/lib64/erlang/lib/sd_notify-0.9/ebin/`  

 
To test it use: `sd_notify:sd_notify(0,"READY=1")`, in this way:

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

Download the binary
-
https://github.com/Gsantomaggio/erlang-sd_notify/releases/tag/0.9

RabbitMQ notes:
-
RabbitMQ does not need `sd_notify`, this add this feature for the users that in general need `sd_notify`. The integration should be considerer as **experimental**