Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

If what you're doing is command line, the standalone script utility can also be used for logging. Sometimes I use this outside of a session manager too,

If you like PM2 for nodejs, a good solution for non-nodejs apps like steemd is Monit:

https://steemit.com/steem/@inertia/using-monit-to-manage-steemd

Pm2 supports python and ruby as well. Only problem I ever had is python buffers the output and you need to specify -u arg with python if you want real time output which can be handled in an eco file.

Otherwise works great.

Tmux is just another terminal no? No autorestart for crashed software like pm2? I use tmux only for a python bot that never crashes, but all my nodejs bots go on pm2 because every time someone does something weird with my bots, there is a high chance that it will die, and I need it up 24/7. Maybe if I implemented some kind of safety never-die measure I could use tmux for nodejs, but so far pm2 has been more than enough.

Also, does tmux have an api accessible from scripts like pm2? pm2's api is a bit bad so i've always been looking for a good process manager that has an api.

Tmux is just another terminal that persists when you quit SSH and allows you to use multiple panes/windows to split it up and have multiple terminals in one.

I only use tmux when something is interactive, under testing, or not a script

You can look at Monit for an alternative to PM2 that has more api functionality.

I’m dreaming one day to start being able to use bots for various purposes as well.
I keep seeing for example how people have big success with them in the mining gambling dApps....

Posted using Partiko iOS

As a still learning programmer loved the tutorial, it's really well explained and I'll use PM2 and tmux when I start building scripts. I do wonder why you didn't use the stem tag? This is the sort of stuff I would love to see on stemgeeks

#technology is also picked up by STEMGeeks.

Did not know, thanks!

The tribe listens for

  • science
  • technology
  • engineering
  • math
  • stem

👍
~Smartsteem Curation Team

  ·  5 years ago (edited)Reveal Comment