I want my processes to remain their existence if Node.js application is killed or restarted but they are killed after my application restarts itself. I've created the code below thanks to this article: Check here but it didn't work for me. I am using Linux btw.
const child = spawn(`${a}`, ['-mount', `${b}`, '-device', `${c}`], { detached: true, stdio: 'ignore' });
child.unref();