basho/node_package — pull request #17 by jaredmorrow (2012-08-08 22:20:26+00:00)
Title: Port changes from basho/riak into node_package

# Changes

Many bug fixes and useability changes have happened in Riak
that needed to be copied over to node_package. The major change
was to specify `/bin/sh` as the shell to enable node_package
use on systems which don't ship with `bash` namely Solaris.

In addition, node_package used LOGNAME in its scripts which
was found to be unreliable across platforms in Riak. Changes
were made to use whois instead to fix #10.

# Bugs / Issues Fixed

Fixes: #10 #12

# Testing

The package was tested by doing the following on an Ubuntu 12.04 clean install with Riak installed

* Change basho/stanchion `rebar.config` to point to branch `gh12-xplatform-support`
* `make package RELEASE=1`
* Make sure `riak` is installed
* `sudo dpkg -i `
* Ensure the following work
* `stanchion start`
* `stanchion ping`
* ensure `stanchion console` errors and tells you to `stanchion attach`
* `stanchion attach`
* `stanchion stop`
* ensure `stanchion ping` fails
* change the `/etc/stanchion/app.config` to have a syntax error (I added a "." randomly)
* ensure `stanchion chkconfig` and `stanchion start` both error out

# Known Issues

* `appname version` does not work yet
* `appname reboot` does not work, see #16