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?