Ran
|
Jobs
5
|
Files
299
|
Run time
41min
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/esl/MongooseIM/commit/<a class=hub.com/esl/MongooseIM/commit/63aaf5101fc54065cb11095d28d515835082d6a2">63aaf5101<a href="https://github.com/esl/MongooseIM/commit/63aaf5101fc54065cb11095d28d515835082d6a2">">Introduce &#39;foreground&#39; mode #1775 * Introduce &#39;foreground&#39; mode In rebar the &#39;foreground&#39; mode is usually used when the erlang app is running as a daemon within a supervising service such as systemd or upstart. To work correctly within those services some flags for &#39;erl&#39; are necessary so that for example unix pipelines can be used. This patch introduces the &#39;foreground&#39; mode as known from rebar which is very similar to live/console but sets the following additional flags: -noshell -noinput +Bd Those are documented at: http://erlang.org/doc/man/erl.html The very same flags are also used in relx and distillery: https://github.com/bitwalker/distillery/blob/master/priv/libexec/commands/foreground.sh#L18 https://github.com/erlware/relx/blob/</a><a class="double-link" href="https://github.com/esl/MongooseIM/commit/<a class="double-link" href="https://github.com/esl/MongooseIM/commit/86d415f33c500d432d6c9fa2fcbff3bb2fff3e8f">86d415f33</a>">86d415f33</a><a href="https://github.com/esl/MongooseIM/commit/63aaf5101fc54065cb11095d28d515835082d6a2">/priv/templates/extended_bin#L623 It should definitely be thought about adjusting the systemd unit file so that 'foreground' is used instead of 'start'. Otherwise the beam process is not considered as main PID and when the beam is killed you are not notified properly via the standard systemd tooling (e.g. 'systemctl status' returns 0). * Add some basic documentation for 'foreground' mode * Mention new 'foreground' mode in list of commands
20342 of 28676 relevant lines covered (70.94%)
12725.08 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|