jazzonaut / IntelliTrader

Intelligent Cryptocurrency Trading Bot
http://intellitrader.io
Other
156 stars 56 forks source link

Enhancement - Process names on linux #16

Closed Rob-bb closed 6 years ago

Rob-bb commented 6 years ago

Hi, would it be possible to use the Instane Name as a process name on Linux, I am running multiple instances and they all show 'dotnet' as their process name.

jazzonaut commented 6 years ago

If you could provide a shell script that could do it, I'll be happy to replace the default one. I'm not a Linux guy, sorry.

Rob-bb commented 6 years ago

Ok, I'll see what I can dig up :)

mrhasbean commented 6 years ago

@Chingis-Khan I'm not sure there is any way of doing that while it is running "under" dotnet. I think you would have to build a specific self-contained Linux version of the app, in which case it should then appear in the process list with it's name. There are details on building a linux version here

jazzonaut commented 6 years ago

By the way on Windows it's exactly the same issue, you just get a bunch of dotnet proceses. That's because dotnet acts as a sort of launcher/host for the main program. So it's normal and I'm not sure if we should be doong anything about it.

Rob-bb commented 6 years ago

yes, I have solution that works for me, but might not be suitable for others. I modified the start scripts to run in a detached screen assigning each screen a descriptive name (bot1, bot2 etc)

mrhasbean commented 6 years ago

@Chingis-Khan you can run them using pm2, the json file to launch them is in the distro, you just edit that for each bot to give it a unique name. That way you can monitor them with the pm2 dashboard. My bad, I was supposed to write a how-to for the wiki but have been a bit sidetracked with getting my business up and running. I'll get to it ASAP.

Rob-bb commented 6 years ago

what is pm2?