by shardulaeer · 3y ago · 0 comments
hp@hp:~$ ser status
+-----+-------------+----------+----------------+-------+--------+
| pid | name | active | enable on boot | cpu % | memory |
+-----+-------------+----------+----------------+-------+--------+
| 0 | hello-world | inactive | false | 0 | 0 |
+-----+-------------+----------+----------------+-------+--------+
| 0 | index.js | inactive | false | 0 | 0 |
+-----+-------------+----------+----------------+-------+--------+
Another UX improvement is the template generation. I found myself googling it everytime. I f there is something more custom (etc sockets) I can use the `ser edit`, this will open nano with a pre-populated template that I can edit.Finally why limit oneself to systemd? pm2 runs on Mac and windows, I aim to do the same. Same set of commands to create services everywhere, with details abstracted away (easier said than done, need to look into their APIs).
https://github.com/crazy-canux/awesome-monitoring
Check out Netadata + Nagios
https://news.ycombinator.com/item?id=36944388
Check out this as well
systemctl list-units | grep my-service* systemctl status 'brand-*' That is, custom services could start with the same prefix.
I run a lot of custom services, and usually I want to check on one specifically, or if I want to look at the total service health, I also want to include the services which are "not mine".