Collegicoin node AMI app - runs system, master or gateway node.
All commands should be executed as root or with sudo
.
- Install
ami
if not installed alreadywget https://raw.githubusercontent.com/cryon-io/ami/master/install.sh -O /tmp/install.sh && sh /tmp/install.sh
- Create directory for your application (it should not be part of user home folder structure, you can use for example
/mns/clg1
) - Create
app.json
orapp.hjson
with app configuration you like, e.g.:
{
"id": "clg1",
"type": {
"id": "posmn.clg.node"
},
"configuration": {
"NODE_PRIVKEY" : "xxxxxxxxxxxxxxxxxxxxxxxxx",
"DAEMON_CONFIGURATION": {
"externalip" : "127.0.0.1"
}
},
"user": "clg",
}
Node types are: masternode
, systemnode
.
- Run
ami --path=<your app path> setup
- e.g.
ami --path=/mns/clg1
. Runami --path=<your app path> --help
to investigate available commands
- e.g.
- Start your node with
ami --path=<your app path> start
- Check info about the node
ami --path=<your app path> info
ami --path=<your app path> stop
- change app.json or app.hjson as you like
ami --path=<your app path> setup --configure
ami --path=<your app path> start
ami --path=<your app path> stop
ami --path=<your app path> remove --all
ami --path=<your app path> stop
ami --path=<your app path> remove
- removes app data onlyami --path=<your app path> start
ami --path=<your app path> stop
ami --path=<your app path> removedb
ami --path=<your app path> start
Run ami with -ll=trace
to enable trace level printout, e.g.:
ami --path=/mns/clg1 -ll=trace setup