Deamon tools supervise exiting without errors

0 votes

I used to run a websocket server as node process on an AWS ec2 instance:

node websocket/index.js

Now I'm trying to use daemontools supervise to execute this process to ensure it restarts in case it stops or dies for some reason. I'm running it from inside the directory. supervise . &. The following is my ./runfile:

#!/bin/sh

node websocket/index.js

To test this out I force kill the process and suprevise restarts it correctly. But, every day when I check it, both the node process and the supervise process are dead. The system is not rebooting. I do not know why this is happening again and again. How do I stop the supervise process to die?

Aug 23, 2018 in Other DevOps Questions by ajs3033
• 7,240 points
29 views

1 answer to this question.

0 votes
Best answer

I found out about node module forever to keep processes alive. Been using it since and no problems so far. Node Module Forever

answered Aug 23, 2018 by ajs3033
• 7,240 points

Related Questions In Other DevOps Questions

0 votes
1 answer

How to deal with non-fast forward errors?

This error is faced when git cannot ...READ MORE

answered Jul 3, 2018 in Other DevOps Questions by Sophie may
• 9,430 points
1,405 views
0 votes
1 answer

Do DevOps tools work together to bring out the DevOps culture? How?

Yes, of course, DevOps tools work together.  Developers ...READ MORE

answered Feb 16 in Other DevOps Questions by Nisha
17 views
0 votes
1 answer
+13 votes
2 answers
0 votes
3 answers

Can we run Spark without using Hadoop?

No, you can run spark without hadoop. ...READ MORE

answered May 7 in Big Data Hadoop by pradeep
121 views
0 votes
1 answer

Can we run selenium tests (Firefox) on WebDriver without a GUI?

You can explore options like HTMLUnit Driver ...READ MORE

answered Mar 23, 2018 in Selenium by nsv999
• 5,050 points
177 views
0 votes
1 answer

How to do CI integration with code review tools

Here is an explanation. If you can switch ...READ MORE

answered Mar 26, 2018 in Jenkins by Atul
• 10,240 points
94 views