Create "DAEMON" Service on Linux?

0

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?

    
asked by anonymous 08.06.2016 / 16:56

1 answer

0

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:

link

or

link

    
13.06.2016 / 15:52