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

learn more… | top users | synonyms

2
votes
0answers
19 views

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) ...
0
votes
0answers
19 views

Daemontools logging an error: supervise: fatal: unable to start supervise/run: file does not exist

This is a more specific follow up to the following question about getting a basic daemontools setup working. I think I have just about everything working, but I still get a nagging error in my log ...
0
votes
0answers
11 views

Trying to get svscan to pipe multilog: chown: invalid user: ‘multilog’

This is related to my attempt to get daemontools working from the previous question. I'm trying to follow these instructions for how to set up daemontools to use multilog rather than readproctitle. ...
0
votes
0answers
31 views

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): $ ...
0
votes
0answers
28 views

Oracle 6.5: MySQL Daemon failed to start

I installed MySQL by following these instructions on my Oracle Linux Server release 6.5, specifically using the yum package installer command, yum install mysql mysql-server mysql-libs mysql-server ...
0
votes
1answer
24 views

What tools available for Ubuntu are best suited for starting a FastCGI application, monitoring, and restarting if it stops?

Note: This is not in regards to PHP; Language is C++ I will be using spawn-fcgi to launch the FastCGI application. I've already found the supervise tool ...
0
votes
1answer
19 views

Log not readable after rotation by daemontools

I have a log, which looks perfectly fine. However, after the log rotation by daemontools, it is no longer human readable. What could be the problem?
0
votes
1answer
75 views

Do I have to configure daemon tools for Nginx or does Nginx handle its shutdown in a smarter way?

I use daemon tools with gearman I was thinking whether I should configure daemon tools for Nginx or does it handle its shutdown (in case of memory issue, etc..) automatically?
4
votes
1answer
119 views

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 ...
0
votes
2answers
301 views

svscan error when installing qmail

I'm quite new to Linux and I'm running into an issue. Searched everywhere, without finding a solution. I tried to install qmail following these instructions. Before finishing and starting the ...
2
votes
2answers
2k views

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 ...
0
votes
1answer
75 views

Daemontools - logging stderr and stdout separately

According to the documentation that I could find, daemontools' recommended way to capture stderr (or any other file descriptor) is to redirect it to stdout. If your service has a log/run script, your ...
1
vote
1answer
370 views

can't start daemon tools automatically

Everytime I reboot the server, I need to manually start daemon tools by manually running the command svscanboot &. I've tried adding csh -cf '/command/svscanboot &' in /etc/rc.local and ...
0
votes
1answer
246 views

Monitor tomcat logs for exception

I am planning to write a bash script and run it as a daemon in the background. The script will continuously monitor the tomcat server logs for any exception, error, etc. When an exception occurs, it ...
0
votes
1answer
113 views

Daemon Tools Messages

I configured a service to run through daemontools, but while stopping svscan, I am getting messages like this: [root@tcp-handler ssc_ios]# /etc/init.d/svscan stop Stopping djb services: svscan ...
1
vote
2answers
665 views

supervise/daemontools conflicts with apache -D FOREGROUND

Hoping that somebody can help us understand this behavior. We've got a bunch of daemontools services under /etc/service/. One of the services controls apache, and the run script has this in it. ...
3
votes
5answers
5k views

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. ...
1
vote
1answer
436 views

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 ...
2
votes
1answer
104 views

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 ...
0
votes
1answer
415 views

Daemontools to run a python script [closed]

I have a run sript under ress directory: #!/bin/sh exec python gmail_new15.py And when I try to execute svc I get: ~# svc -du ress/ svc: warning: unable to control ress/: file does not exist My ...
2
votes
1answer
312 views

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 ...
1
vote
2answers
746 views

Running JBoss 6 with Runit / daemontools or other process supervision framework

I'm tying to use runit to daemonize JBoss. I use the /opt/jboss-6.1.0.Final/bin/run.sh script to start the server. When I do so from the comandline, JBoss does not detach (which is what we want), ...
3
votes
2answers
333 views

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 ...
0
votes
2answers
518 views

Using daemontools under Debian

I need to monitor my postfix, dovecot and sasl process and start them if something go wrong. I read about daemontools and I want it to monitor mail services. Can I find somewhere step by step guide ...
2
votes
2answers
609 views

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: ...
0
votes
1answer
461 views

Qmail - replacing multilog with splogger

I currently manage a qmail installation, set up on Centos using the qmailrocks guide (which seems to have vanished from the Internet now). So - daemontools, multilog, vpopmail, qmail. I've been asked ...
0
votes
1answer
689 views

Monitoring hanging processes

I need to monitor hanging processes on the output of ps -ef | grem GMC... What's the best way to do this without running this command manually and being stuck in front of a command line all day? I'd ...
0
votes
1answer
164 views

Django app displaying the same page no matter what url visited

I have a simple Django application that I am using to test out a new deployment strategy using Nginx, FastCGI (using the latest version of flup at the time of writing) and daemontools. Basically the ...
1
vote
1answer
216 views

multilog compatibility wrapper for svlogd?

Has anyone written a compatibility wrapper for svlogd to function as a drop-in replacement for multilog? I'm a fan of UNIX process supervision in the style of daemontools and lately of runit. While ...
1
vote
1answer
364 views

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 ...
2
votes
2answers
4k views

how to install daemontools (supervise) on centos 5?

I'd like to use supervise to monitor httpd, mysqld and hudson processes on Centos 5. When any of these processes go down I'd like to use a tool to automatically restart them. I've read and heard ...
20
votes
10answers
9k views

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 ...
0
votes
3answers
180 views

Staggering java linux process startup to prevent OOM

I am running a number of java processes on a single Linux machine. From a memory and computing standpoint, everything is fine when things are static. However, periodically we use a configuration ...
1
vote
1answer
240 views

Can haproxy run under supervise when daemon mode is on?

We've got haproxy running in non-daemon mode, with DJB's supervise (a.k.a. daemontools) script keeping an eye on it. However, as our site traffic has grown, its single thread has reached 100% CPU. ...
3
votes
4answers
528 views

Recommendations for Monitoring services [closed]

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 ...