Hi, not sure if this belongs here or Linux noobs subreddit, but here it is.
I need to run multiple instances of same program, there may often be need to add one instance more or remove few of them. I can write a script that will start them, but what happens if one of them stops for some reason? How can I make sure that it gets restarted if stops for some reason?
In similar situations I used to make systemd service file for each instance, but in this case there is a lot of them. What would be the best approach?
[link] [comments]