Questions tagged [daemontools]

daemontools is a collection of tools for managing UNIX services written by D. J. Bernstein.

daemontools is a set of tools for managing unix services (daemons), including stopping, starting, restarting, logging, and monitoring them.

It consists of a suite of utilities which allow you to interact with the supervise program which is ultimately responsible for starting, monitoring, and (in the event of an untimely death) restarting services.

It offers functionality system to , without replacing your entire init subsystem.

More information can be found on the daemontools homepage.

41 questions
26
votes
9 answers

Alternative to Daemontools (djbtools) to supervise unix processes?

I've used Daemontools to provide a simple and reliable way to supervise Unix services on my servers. It works well, but it requires a different way of thinking (The DJB Way) and some common complaints are: TAI64N based timestamps Doesn't store…
Stefan Lasiewski
  • 22,949
  • 38
  • 129
  • 184
13
votes
2 answers

How do I chose between upstart, runit, supervisor, daemontools, ... for restarting a process if it dies? (process supervision / monitoring)

I have a Nginx web proxy, gunicorn web server, and a python/flask web app. The Gunicorn process apparently died, and I want to ameliorate that in the future by looking into a utility that can monitor and restart the gunicorn process in the event it…
Matthew Moisen
  • 341
  • 2
  • 5
  • 12
10
votes
5 answers

runit - unable to open supervise/ok: file does not exist

I'm trying to figure out why runit will not boot or give me the status for the managed applications. Running on Ubuntu 12.04. I created /service, /etc/sv/myapp (with a run script, a config file, a log folder and a run script inside of it). I create…
Alexandr Kurilin
  • 546
  • 1
  • 8
  • 20
4
votes
1 answer

Share .iso files on CentOS for remote mounting anywhere via Internet

I have a remote computer suppport business and we have the need to remotely mount .iso files on a client machine from time to time for use to grab driver updates and so on. We own a huge server on the Netcraft top 10 list and I'd like to mount some…
coneH34D
  • 41
  • 3
4
votes
7 answers

run script as another user from a root script with no tty stdin

Using CentOs, I want to run a script as user 'training' as a system service. I use daemontools to monitor the process, which needs a launcher script that is run as root and has no tty standard in. Below I give my five different attempts which all…
Viktor Trón
  • 141
  • 1
  • 1
  • 5
3
votes
1 answer

How can I make daemontools run a simple service without manually calling supervise?

Based on various start guides on the web, the sequence of steps I'm using to go from no daemontools installed to having a simple service running automatically is the following (on Ubuntu 14.04): $ sudo apt-get install daemontools $ sudo apt-get…
jonderry
  • 187
  • 3
  • 12
3
votes
2 answers

Spawning multiple instances of a daemon in Ubuntu

I have a python script that listens and blocks while it waits for data on a redis list. It runs fine in upstart using the following: description "stage message consumer" author "Nilesh Ashra" start on started mountall stop on…
3
votes
4 answers

Recommendations for Monitoring services

I would like to install a monitoring services (Monit or others) on my web server and am looking for recommendation. I have no idea which is good, and what parameters which I should evaluate on, and which is a good for for my needs. Some which I saw…
shabda
  • 300
  • 1
  • 4
  • 10
2
votes
1 answer

Running OpenOffice as a Daemontools service not picking up the user

My problem is that, when started with Daemontools, files created by OpenOffice (which runs in server mode) are owned by root (and in the root group). When I start the Daemontools 'run' script manually, OpenOffice correctly creates file with the…
TrojanName
  • 155
  • 1
  • 2
  • 7
2
votes
1 answer

Cleaner way to restart daemontools services

In our product, we had created services using daemontools. One of my service looks like this, /service/test/run /service/test/log/run (has multilog command to log into ./main dir) /service/test/log/main/.. All the process and its directories are…
Prabu
  • 121
  • 2
2
votes
2 answers

daemontools: How to find out what is wrong?

I'm exploring daemontools to run some of our applications, which generate some output as well (on both stdout and stderr). I installed daemontools on a debian box. Every time, I do a svc -u /etc/service/myservice to start the service, I get a…
Lazylabs
  • 143
  • 1
  • 2
  • 5
2
votes
1 answer

telling runit to pick up a new service immediately

As a happy user of runit - I am curious if it is possible to send a signal to the main process (or similar) telling it to look now at the service directory? the current behaviour is < 5 seconds (seems much faster most of the time) between scans for…
Michael Neale
  • 3,654
  • 5
  • 27
  • 26
2
votes
1 answer

Can daemontools (djbtools) be configured to start multiple processes as a single UNIX service?

If I have an application that requires two separate processes (front- and back-end) to run properly, is it possible to launch both of them from a single runscript and have daemontools supervise both of them and treat them as a single service? If so,…
bjmc
  • 147
  • 3
2
votes
1 answer

Jetty (HTTP Servlet Server in Java) unexpectedly shuts down

A Jetty application is deployed on a server of mine, but keeps on terminating, with little understandable evidence as to why. Any help in resolving this would be greatly appreciated. Details: OS: Slackware Linux 13.1 Linux 2.6.32.16 running as…
Dale
  • 21
  • 2
2
votes
1 answer

Waiting for a daemontools service to stop

I'm running a service under daemontools that take several seconds to stop when sent the TERM signal. I need to stop it in a script, and then wait for the process to stop before continuing to take a LVM snapshot or restarting the service. Does…
also
  • 121
  • 4
1
2 3