create the file /etc/init/ipfs.conf, with the following contents:
description "ipfs-daemon"
author "Joe Bloggs"
start on started mountall
stop on shutdown
# automatically respawn| // fetched from binance here: https://api.binance.com/api/v3/depth?limit=10&symbol=BTCUSDT | |
| // top 10 bids on binance | |
| const orderbook = { | |
| "lastUpdateId":17087314354, | |
| "bids":[ | |
| ["44127.87000000","0.20199000"], | |
| ["44127.55000000","0.00401000"], | |
| ["44127.53000000","0.10323000"], | |
| ["44127.17000000","0.04000000"], | |
| ["44126.73000000","0.04000000"], |
| let organisations = [ | |
| { id: 1, name: "grandaddy", parentId: null }, | |
| { id: 2, name: "daddy", parentId: 1 }, | |
| { id: 3, name: "sister", parentId: 2 }, | |
| { id: 4, name: "brother", parentId: 2 } | |
| ] | |
| const myChildId = 4; | |
| function findChild(id) { |
| 047cbc7ed5de394ba0e93d8f99b893a5239cec34883967d9293db64406e9847779cee9237af5a9d71b2769ef7a5765d0764716847e2677ffa85796a531ebed10b0 |
create the file /etc/init/ipfs.conf, with the following contents:
description "ipfs-daemon"
author "Joe Bloggs"
start on started mountall
stop on shutdown
# automatically respawn