I'm developing an application with Node.js
and would like to create a daemon
to launch it automatically. I'm using RASPBERRY PI
.
Does anyone have an idea?
I'm developing an application with Node.js
and would like to create a daemon
to launch it automatically. I'm using RASPBERRY PI
.
Does anyone have an idea?
You simply create your application and add in the Linux startup the initial command (node server.js) and within your code you can create methods to be executed with a specific time using setInterval(yourMethod, TIME_IN_MS);
You can use packages to ensure that your app is reactivated in the event of an error or problem:
or