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
2
votes
2 answers

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 about supervise, but couldn't find a way to install it…
solsol
  • 1,121
  • 8
  • 21
  • 31
2
votes
0 answers

daemontools svscan cannot start supervise due to permission denied error on CentOS 8

I have installed daemontools-0.76 on a CentOS 8 system as per the official docs here: http://cr.yp.to/daemontools.html. I then created a test service symlinked in /service/test with a simple run file that echoes text to stdout (as basic as it gets).…
comc
  • 21
  • 2
1
vote
0 answers

How do I fix a corrupted supervise?

Our set up is such that we have supervise directories linked to our source control. Unfortunately, if we change branches without bringing down services first, it breaks supervise. $ sudo svstat /service/ppma /service/ppma: unable to read…
Chris B.
  • 337
  • 1
  • 8
  • 18
1
vote
2 answers

Can systemd manage a pipeline?

Can systemd manage a pipeline similar to how the daemontools family does it? And if so, what's the best way to achieve this? I want to run the equivalent of service1 | service2 where both service1 and service2 are (separate or not) services managed…
Patrick
  • 322
  • 6
  • 17
1
vote
0 answers

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 However I repeatedly keep getting the following…
beckah
  • 111
  • 3
1
vote
1 answer

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?
Jad Joubran
  • 160
  • 2
  • 9
1
vote
1 answer

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 daemon's stdout will be piped to it. This…
mikewaters
  • 1,175
  • 1
  • 14
  • 27
1
vote
2 answers

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. exec envdir /var/lib/supervise/wwwproxy/env setuidgid…
Kevin G.
  • 209
  • 3
  • 12
1
vote
1 answer

Daemontools to run a python script

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 goal is to control if the python script crashes and…
donald
  • 453
  • 2
  • 6
  • 17
1
vote
2 answers

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), and will also shut down when CTRL+C is pressed. In…
Alex Recarey
  • 441
  • 1
  • 6
  • 14
1
vote
1 answer

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 problem is if I visit domain.com the main page…
Cromulent
  • 316
  • 1
  • 2
  • 18
1
vote
1 answer

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 runit offers a compatibility mode for many of the…
pilcrow
  • 459
  • 5
  • 19
1
vote
1 answer

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. We'd like to start using haproxy's nbproc option, to…
mike
  • 3,963
  • 11
  • 30
  • 27
1
vote
0 answers

CentOS 7: how/where does one get multilog or s6-log or similar logging program?

On a CentOS 7.8 server, I have a homegrown script that, among other things, starts another program whose output log I need to manage. I would like to use s6-log or multilog or tinylog or similar logging program, but cannot seem to find a…
mhucka
  • 679
  • 4
  • 10
  • 22
0
votes
1 answer

Autostart/restart program simply with daemontools in debian 9

For example make vlc start and play a video full screen on boot. After working this out here it is:
Hayden Thring
  • 147
  • 16