diff options
author | Gabriele Santomaggio <gabriele.santomaggio@erlang-solutions.com> | 2016-06-26 10:20:46 +0200 |
---|---|---|
committer | Gabriele Santomaggio <gabriele.santomaggio@erlang-solutions.com> | 2016-06-26 10:20:46 +0200 |
commit | e3512b1c7c9e8a51f0230ad79588448cf9216a1e (patch) | |
tree | 04245ebdea87cce07d66719c43d3f6430f9ee4fa | |
parent | 5138b7217da792d91bd563b86227ca30595f24b0 (diff) | |
download | erlang-sd_notify-e3512b1c7c9e8a51f0230ad79588448cf9216a1e.tar.gz |
update README
-rw-r--r-- | README.md | 29 |
1 files changed, 12 insertions, 17 deletions
@@ -2,43 +2,38 @@ --- This adds 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/) ) +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 +Build from source `RPM` - -To build it execute the docker image. + + 1. `docker build -t sd_rpm .` + 2. `make` + + Download the binary - -https://github.com/Gsantomaggio/erlang-sd_notify/releases/tag/0.10 +https://github.com/systemd/erlang-sd_notify/releases/tag/ -Add to Erlang +Install and Test - -I suppose you are using the [RabbitMQ Erlang installation](https://www.rabbitmq.com/releases/erlang/). -Follow these steps: +Install: - extract the tar.gz + extract the tar.gz mkdir -p /usr/lib64/erlang/lib/sd_notify-0.10/priv/ mkdir -p /usr/lib64/erlang/lib/sd_notify-0.10/ebin/ cp priv/* /usr/lib64/erlang/lib/sd_notify-0.10/priv/ cp ebin/* /usr/lib64/erlang/lib/sd_notify-0.10/ebin/ -Test -- -To test it use: `sd_notify:sd_notify(0,"READY=1")`, in this way: +Test: [root@a499ee66251a]# erl ... 1> sd_notify:sd_notify(0,"READY=1"). ok -RabbitMQ notes: -- -RabbitMQ does not need `sd_notify`,. -This add the feature for the users that in general need `sd_notify`. -The integration should be considerer as **experimental** - Building on Debian - |