Questions tagged [daemontools]

daemontools is a collection of tools for managing UNIX services. Not to be confused with "DAEMON Tools", the disk image emulation tool for Windows.

Install instructions: http://cr.yp.to/daemontools/install.html

FAQ: http://cr.yp.to/daemontools/faq.html

15 questions
4
votes
1 answer

Daemontools multilog loses log line time information. How to fix it?

I am using daemontools to monitor a process and its output log. I am using multilog to write the logs to disk. The run script for the log is: #!/bin/bash PATH=/usr/local/bin:/usr/bin:/bin cd /usr/local/script_dir exec multilog t s16777215 n50…
donatello
  • 355
  • 4
  • 10
3
votes
1 answer

How to run a job every 6 hours starting at 3:00 using runwhen

I try to make runwhen perform a job every 6 hours, starting at 3:00 in the morning. (How) Can this be done?
Marcel
  • 1,114
  • 1
  • 14
  • 28
3
votes
3 answers

Are there any good tutorials for NetBSD and daemontools?

I'm looking for some good resources on running daemontools on a NetBSD box. I've installed the binary package via pkg_add, but I can't seem to find an rc script for starting, e.g., svscan. I'm mostly a Linux and FreeBSD user, and this is the sort of…
Hank Gay
  • 3,489
  • 4
  • 24
  • 27
3
votes
0 answers

Why does this pipe not end when the las process dies (zombie)?

I have a script run and monitored by svscan/supervise. When the last luces-hf/run: #!/bin/bash set -v export http_proxy=[redacted] curl -N -s https://[redacted] |\ grep --line-buffered "event" | http_proxy='' xargs -n 1 luces.sh It seems that when…
marianov
  • 173
  • 5
3
votes
2 answers

Possible to pass env vars into chpst without envdir?

I use runit to daemonize my web application, and I'm trying to see if I can have my process managed by sv not have to have a corresponding envdir for its environment variables. I wonder if I can just pass those vars directly into my call to chpst.…
Alexandr Kurilin
  • 2,481
  • 2
  • 16
  • 13
3
votes
1 answer

Why does the rc.status file set the LC_ALL locale

I am currently creating a daemon service and in order to leverage existing service functionality, the startup script sources from /etc/status. This causes a problem with our service because within the first line, the locale is set to POSIX: # Do…
user6353
2
votes
1 answer

How to install daemontools on ubuntu or debian from source

I am installing D.J.B.'s daemontools on an ubuntu 10.04 server (64 bit). (This question is about daemontools, which is a free and open software for managing UNIX services. It is not about 'DAEMON tools', which is a commercial software for disk…
mit
  • 1,413
  • 3
  • 12
  • 17
2
votes
4 answers

How to determine whether a service was terminated (not running but it should)?

I've got some services in /service/... in a gentoo-based system and I'd like to monitor these services. I can check whether they are running or down using svc-status but how can I determine whether they are not running but they should? So they are…
papaiatis
  • 191
  • 1
  • 1
  • 4
2
votes
1 answer

Node.js server with daemontools is constantly restarted

I want to run a Node.js server with daemontools on Debian (Jessie) but my script running under supervise is constantly restarted. This is the run script that I'm using (/etc/service/node/run): #!/bin/bash exec setuidgid nodeuser bash -c…
chrisklaussner
  • 317
  • 3
  • 11
1
vote
1 answer

How to Start a Service in a Specific Directory via Daemontools?

I am using daemontools to start my application. In the run script, I have something like exec taskset -c 2 [absolute path to my application] But the problem is that one of the black box library my application expects it to run in a specific…
HCSF
  • 213
  • 2
  • 9
1
vote
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
  • 242
  • 1
  • 11
1
vote
2 answers

Is there a retry count setting for svscan?

I'm supervising a script with svscan which may run into errors and stuck there. When the script dies svscan restarts it right away but dies immediately. So it keeps restarting it. I don't seem to find any setting or configuration for svscan such as…
papaiatis
  • 191
  • 1
  • 1
  • 4
0
votes
0 answers

daemontools no longer startable as service: Start request repeated too quickly

I've got two Raspberries. An old one running Raspbian/Debin 4.9.35+ and a new one, running 5.15.32. On the old one, I have daemontools working smoothly and starting MyService smoothly as well upon reboot: $ systemctl status daemontools.service ●…
fbstov
  • 9
  • 2
0
votes
1 answer

How to run PostgreSQL as daemontools service?

svscanboot was ran and added to autostart added script from article http://thedjbway.b0llix.net/services/postgresql.html to /service/postgres/run and change mode a+x,root owner Add service: svc -u /service/postgres Check svstat /service/postgres,…
shkiper
  • 115
  • 1
  • 3
-1
votes
1 answer

Problem with start Daemontools services

I created directorys with structure: /service//run executed command: sudo svc -dx /service/* fail: svc: warning: unable to control /service/httpadapter: supervise not running What cause of problem?
shkiper
  • 115
  • 1
  • 3