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

esl / MongooseIM / 4349
86%

Build:
DEFAULT BRANCH: master
Ran 26 Mar 2018 07:05PM UTC
Jobs 5
Files 299
Run time 41min
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

pending completion
4349

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

20342 of 28676 relevant lines covered (70.94%)

12725.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4349.1 (PRESET=internal_mnesia DB=mnesia REL_CONFIG=with-all TLS_DIST=yes) 26 Mar 2018 07:05PM UTC 0
53.55
Travis Job 4349.1
3 4349.3 (PRESET=odbc_pgsql_mnesia DB=pgsql REL_CONFIG=with-odbc) 26 Mar 2018 07:15PM UTC 0
61.93
Travis Job 4349.3
4 4349.4 (PRESET=ldap_mnesia DB=mnesia REL_CONFIG=with-none) 26 Mar 2018 07:05PM UTC 0
55.99
Travis Job 4349.4
5 4349.5 (PRESET=cassandra_mnesia DB=cassandra REL_CONFIG=with-cassandra CASSANDRA_VERSION=3.9) 26 Mar 2018 07:06PM UTC 0
58.74
Travis Job 4349.5
8 4349.8 (PRESET=riak_mnesia DB=riak REL_CONFIG=with-riak) 26 Mar 2018 07:46PM UTC 0
57.76
Travis Job 4349.8
Source Files on build 4349
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4349
  • 63aaf510 on github
  • Prev Build on master (#4345)
  • Next Build on master (#4354)
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