basho / node_package

RPM/Debian/FreeBSD/SmartOS/Solaris/OSX packaging templates for Erlang Nodes
Apache License 2.0
89 stars 63 forks source link

Log administrative stop, restart, reboot operations. [JIRA: RIAK-1872] #184

Closed jonmeredith closed 9 years ago

jonmeredith commented 9 years ago

Useful for debugging situations when nodes are exiting gracefully (going through the application:stop sequence) but there are no log messages to explain why init:stop() was called (like top level app supervisors dying).

With this change, error logger is used to record the administrative intent.

(If reviewing using Riak, you can't actually hit restart/reboot any more from the riak script, erts-5.10.4/bin/escript /Users/jmeredith/basho/work/riak_ee-2.0/dev/dev2/bin/../erts-5.10.4/bin/nodetool -name dev2@127.0.0.1 -setcookie riak restart is your friend).

macintux commented 9 years ago

:+1:

Basho-JIRA commented 9 years ago

Jon M confirmed code merged to 2.0.6 on 6/25/15. Dev is done. Now just waiting to go into additional releases.

_[posted via JIRA by Patricia Brewer]_