8 ms·
I built the tool simply to improve developer experience. Run `systemctl list-units` and the console is flooded with a wall of services, most of them are not min
by shardulaeer 3y ago
I built the tool simply to improve developer experience. Run `systemctl list-units` and the console is flooded with a wall of services, most of them are not mine. Run `ser status` and I only see the ones that I created. The activity state, CPU and memory usage is displayed so I don't need to run a separate command.
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).
- MuffinFlavored 3y agoTo do formatting on a message (multilines of code, equivalent to ``` in Markdown), indent everything with 4 spaces
- shardulaeer 3y agoFixed, thanks for the heads up!
- MuffinFlavored 3y ago> The activity state, CPU and memory usage is displayed so I don't need to run a separate command. https://github.com/crazy-canux/awesome-monitoring https://github.com/crazy-canux/awesome-monitoring Check out Netadata + Nagios https://news.ycombinator.com/item?id=36944388 https://news.ycombinator.com/item?id=36944388 Check out this as well systemctl list-units | grep my-service
- fullstop 3y agoalso see systemd-cgtop
- markstos 3y agoAs long as remembering a new command is required this also be used: * 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".