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,300 points
494 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,300 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,620 points
31,073 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
667 views
0 votes
0 answers
0 votes
0 answers

how to install ADOP a.k.a. Accenture devops platform in local desktop without using server?

I came to know that ADOP a.k.a. ...READ MORE

Mar 26, 2022 in Other DevOps Questions by Kichu
• 19,050 points
436 views
0 votes
0 answers

tracking of DevOps tools versions

Working with DevOps leads to working with ...READ MORE

Apr 7, 2022 in Other DevOps Questions by Kichu
• 19,050 points
413 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
3,946 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP