• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

esl / MongooseIM / 4349 / 4
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 26 Mar 2018 07:05PM UTC
Files 299
Run time 26s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Mar 2018 06:33PM UTC coverage: 55.991% (+0.02%) from 55.967%
PRESET=ldap_mnesia DB=mnesia REL_CONFIG=with-none

push

travis-ci

arcusfelis
<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">&quot;&gt;Introduce &amp;#39;foreground&amp;#39; mode #1775

* Introduce &amp;#39;foreground&amp;#39; mode

In rebar the &amp;#39;foreground&amp;#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 &amp;#39;erl&amp;#39;
are necessary so that for example unix pipelines can be used. This
patch introduces the &amp;#39;foreground&amp;#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 &#39;foreground&#39; is used instead of &#39;start&#39;. 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. &#39;systemctl
status&#39; returns 0).

* Add some basic documentation for &#39;foreground' mode

* Mention new 'foreground' mode in list of commands

16028 of 28626 relevant lines covered (55.99%)

1378.43 hits per line

Source Files on job 4349.4 (PRESET=ldap_mnesia DB=mnesia REL_CONFIG=with-none)
  • Tree
  • List 0
  • Changed 111
  • Source Changed 0
  • Coverage Changed 111
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 4349.4
  • 63aaf510 on github
  • Prev Job for PRESET=ldap_mnesia DB=mnesia REL_CONFIG=with-none on master (#4345.4)
  • Next Job for PRESET=ldap_mnesia DB=mnesia REL_CONFIG=with-none on master (#4354.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc