Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17934

Controlling multiple instances of same program

$
0
0

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?

submitted by /u/l0c0d0g
[link] [comments]

Viewing all articles
Browse latest Browse all 17934

Latest Images

Trending Articles



Latest Images