Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
37 views

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

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

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 /...
-1
votes
1answer
1k views

Problem with start Daemontools services

I created directorys with structure: /service/<nameservice>/run executed command: sudo svc -dx /service/* fail: svc: warning: unable to control /service/httpadapter: supervise not running ...
1
vote
2answers
278 views

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

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

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

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

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

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/...
3
votes
1answer
853 views

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?
2
votes
1answer
11k views

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 ...
3
votes
1answer
612 views

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

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