Questions tagged [daemontools]

daemontools is a collection of tools for managing UNIX services.

supervise monitors a service. It starts the service and restarts the service if it dies. Setting up a new service is easy: all supervise needs is a directory with a run script that runs the service.

multilog saves error messages to one or more logs. It optionally timestamps each line and, for each log, includes or excludes lines matching specified patterns. It automatically rotates logs to limit the amount of disk space used. If the disk fills up, it pauses and tries again, without losing any data.

5 questions
1
vote
1 answer

How to find out why daemon tools supervise is exiting

I run a node process (websocket server) on an AWS instance. I used to start it like this: node websocket/index.js But have recently swiched to using daemontools supervise to run this process so that it respawns if it should quit or die for any…
David
  • 2,430
  • 2
  • 15
  • 13
0
votes
0 answers

daemontools can not automatically restart the process

I killed the process using kill -9,but the process cannot be automatically restarted. I confirm that I have not used svc -d to stop the process. I can only manually restart the service using svc -u.
lwl
  • 1
0
votes
1 answer

Use envdir to set environment variables in running process

I have a directory with a list of files containing environment variables; for example a file named REALM that has the contents "dev", a file named TZ that has the contents "UTC", etc. I'd like to set these in the current process environment, for…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
0
votes
0 answers

Not able to run a custom daemontool service

I created a service to run my web application but I was not able to as it gave me a exec format error. My run file in /services/chatery/run which is linked in /service/ exec '/home/ubuntu/chattery/chatery/app.py --host 10.0.0.14 --port 80 --tz…
Shaurya Chaudhuri
  • 3,772
  • 6
  • 28
  • 58
0
votes
1 answer

How to run django server with daemontools

I am running a django webserver with default manage.py file, how can i daemonize it using svc daemontools Content of my run file in daemontools is #!/bin/bash exec setuidgid /usr/bin/python runserver 2>&1 Content of…
ajays20078
  • 368
  • 1
  • 3
  • 10