Starting and stopping a node app

Hi there!

So as a fun project, I want to create a Node manager for my nodejs tools.

As of right now :

I create a thread,

I start a process in that thread

That process open a window cmd

I do my command (using npm script to start my app) Ex : npm start

My app launch in the background.

My issue :

I can’t stop it.

I tried to kill the thread : My apps is still running

I tried to kill the process : It seems to kill the cmd process, not the node app.

Sorry If I don’t post the code, I don’ have access right now.

How can I keep track of an app started with a window cmd in a process in a thread?

Thank you!!

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

Leave a Reply