Username: Password:

Author Topic: How to run GunBot 3.3.4 in PM2 Ubuntu  (Read 21367 times)

Offline Diesel

  • Rookie
  • *
  • Posts: 16
    • View Profile
How to run GunBot 3.3.4 in PM2 Ubuntu
« on: July 26, 2017, 12:19:47 AM »
I'm having people ask me how to get the latest GB (3.3.3) running in PM2, so it starts at boot and so you don't have a terminal screen open all the time.

So a refresher on PM2:

Install npm:  https://keymetrics.io/2015/02/03/installing-node-js-and-io-js-with-nvm/

Install PM2: npm install pm2 -g

Start your gunbot using PM2: From  your gunbot folder
         pm2 start ./gunthy-linx64 -n Gunbot_Name -- --color
            Note the -- --color tag at the end? That lets PM2 display the log in the color Gunthar intended!

Save it: pm2 save

Look for your pm2 ID:
         pm2 list

view your log:
         pm2 log 0 (my pid was 0)

That's it for now. More to come as people build monitors and Gunthar adds features and a gui!


Like the tutorial? Tips are greatly appreciated, as is using my referral for CoinTracking:
CoinTracking: Lots of reports, including tax reporting for exchanges and wallets.  It's not cheap, but if you are trading with more than a token amount, give it a try. 10% Off with this referral (and I get some BTC, thank you! https://cointracking.info?ref=D416986
BTC: 1DiESeLca4RfbvoUTVUg7NSRn16T3G8YPd    (yes, that's a vanity BTC address  8) )
ETH: 0x4381adfb5e212f2ac2477075b866357b0b69c37b
« Last Edit: July 27, 2017, 04:35:36 PM by Diesel »

Offline AlfonseX

  • Contributor
  • **
  • Posts: 101
  • Trop de chefs, pas assez d'indiens !
    • View Profile
Re: How to run GunBot 3.3.3 in PM2 Ubuntu
« Reply #1 on: July 26, 2017, 02:22:59 AM »
What is the advantage to run GB over PM2?
If you think I helped you, give me a drink:
in btc: 12aeQSpytxoehCEptQE8tUJVVSAS42LvXo
in eth: 0x02a611f0c15bccdb6fa8e5e4b0692ff6d77852bd

Offline Diesel

  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: How to run GunBot 3.3.3 in PM2 Ubuntu
« Reply #2 on: July 26, 2017, 03:17:51 AM »
I'm used to PM2. It makes it easy to restart automatically, makes it easy to grab logs and run multiple bots too.
Also works well on any linux version, and OSX.
There are other options, but it works. My goal: Auto start, easy restart, easy log and easy process manager.

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Re: How to run GunBot 3.3.4 in PM2 Ubuntu
« Reply #3 on: August 03, 2017, 01:13:03 PM »
how to stop bot?

PS
pm2 stop ./gunthy-linx64
=)
« Last Edit: August 03, 2017, 01:15:12 PM by dobcrypto »