The setsid() command does exactly what I need when starting programs of this type See https://www.man7.org/linux/man-pages/man1/setsid.1.html about this Now, just to figure out a way to detach the parent from these children safely.