V
V
Vlad Zaitsev2017-01-12 06:20:18
linux
Vlad Zaitsev, 2017-01-12 06:20:18

Lightweight analogue of PM2 for linux?

For nodejs, there is a very convenient processor manager that can:
1) Start processes in the form of any files / scripts, stop them, monitor memory consumption, processor consumption, and so on.
2) It's easy to start processes - something like "pm2 start /home/server.sh", and then it will do everything itself - it will catch the pid, start the process again when it crashes, start it when the server boots, collect the output of the process into its log with rotation.
3) Restart processes when changing their files: I re-uploaded the script to the server, and it restarted itself.
4) Show a handy table where the main indicators are collected: uptime, number of crashes, occupied memory, current status
b337b757ed8d49acb24eea00a5d231ee.png
It has a lot of functionality there, but it's not critical for me. One problem with such a wonderful program is nodejs, which means that it is inconvenient to run on something small, such as a router with openwrt. Is there anything similar but smaller?
I'm not looking for a monitoring system (like monit), and not a process autostarter (init.d suits me as well). I want something that I could shove a script into and it would do the rest by itself. So that I don’t have to create a pid file in the script, and write a config for each small script.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
theg4sh, 2017-01-19
@theg4sh

What about supervise from the daemontools package ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question