Username: Password:

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - monstrx

Pages: [1]
1
I used this guide it is by far the easiest to follow however when I got to here

$ pm2 start gunthy-linx64
please note that the above command will stop when you shut down the console.

13. To make Ubuntu run GUNBOT in the background, at all times, here are the key commands;
TO START THE BOT
$ pm2 start gunthy-linx64
TO STOP THE BOT
$ pm2 stop gunthy-linx64
TO MONITOR TRADES
$ pm2 MONIT
TO MONITOR LOGS
$ pm2 logs

Both the "start" commands are the same I do not see how one will keep the bot running and the other the bot will close when the terminal is closed ??
What happen to me was straight after I installed PM2 I was able to start and stop the bot
but
then I scrolled up a bit and noticed that PM2 was offering me the opportunity too do this

                Make pm2 auto-boot at server restart:

                $ pm2 startup

because it sounded like it would restart if my VPS rebooted I did it but then was unable to stop the bot because of this error

[PM2][ERROR] Permission denied, command needs to be runned as root - access file: /home/XXXXXXXXX/.pm2/rpc.sock

So I will reinstall and not run pm2 startup unless anyone can put any light on this

thanks

That's purpose of "pm2"
you can start bot without it but it will stop when SSH is closed.

For your error Try to run command as sudo.


2
Followed your guide,
it worked flawlessly.

Pages: [1]