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,280 points
172 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,280 points

Related Questions In Other DevOps Questions

+1 vote
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
• 10,550 points
17,208 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, 2019 in Other DevOps Questions by Nisha
140 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,334 views
0 votes
3 answers

Can we run Spark without using Hadoop?

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

answered May 7, 2019 in Big Data Hadoop by pradeep
697 views
0 votes
3 answers

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

Hi ,  Yes, you can use headless browsers ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,190 points
2,532 views