Questions tagged [runit]

runit is a cross-platform Unix init scheme with service supervision, a replacement for sysvinit, and other init schemes.

Filter by
Sorted by
Tagged with
2 votes
1 answer
630 views

Can runit be used to launch multiple instances of a single service?

My software runs on a single phusion-baseimage -based docker image. It consists of a couple of processes that are controlled by runit. For one of these processes/services (rqworker), I need to launch ...
Matti Mäki's user avatar
0 votes
0 answers
181 views

Using runit instead of rc.d on Debian with Rex

I have systems that ensures that their services are running by runit instead of rc.d or systemd on Debian, and I am trying to use Rex to start building a coherent setup across my systems. I would ...
user3459474's user avatar
1 vote
0 answers
531 views

How to add environment variable for runit service?

For traditional init environment we had "/etc/initscript" for setting environment for services. How we can set environment for runit services (Ubuntu 14.04)? TIA, Vitaly
Vitaly Karasik DevOps's user avatar
2 votes
1 answer
2k views

warning: couchdb: unable to open supervise/ok: file does not exist - Runit

I was trying to run couchdb with runit, and I encountered the error above. Even this, this and many others didn't help me in knowing what the problem is. Here was what I did to produce the problem. ...
user3622260's user avatar
1 vote
2 answers
4k views

runit does not start a service

I installed runit-2.1.2 on my ubuntu box, And, I Created very simple streaming service as below, mkdir -p /etc/sv/streaming/ echo 'echo "streaming" >> /var/log/streaming.log' > /etc/sv/...
prayagupa's user avatar
  • 121
1 vote
1 answer
1k views

How to make svlogd send logs via UDP

I am currently using runit + svlogd for supervising some applications, but when deploying to multiple machines, I have the need to centralize/unify the logs in a single place in order to simplify ...
nbari's user avatar
  • 568
2 votes
0 answers
1k views

Chef Server 12 on Debian Jessy fails with "unable to change to service directory"

While not being officially supported, I want to run Chef Server 12 (12.3.0) on Debian Jessie. After fixing Debian's systemd ego trip as described in chef-cookbooks/chef-server#86, it is installing ...
StephenKing's user avatar
13 votes
2 answers
7k views

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 ...
Matthew Moisen's user avatar
1 vote
1 answer
2k views

Runit logging not working

I created a service with runit. Service starts and falls without logging. I need information about STDOUT of service for error detection (service starts without runit properly). I created a ...
Somewater's user avatar
1 vote
1 answer
2k views

What kind of service is runit's svlogd expecting?

The runit manual states that in the configuration one can use an option to submit logs to: ua.b.c.d[:port] tells svlogd to transmit the first len characters of selected log messages to the ...
oz123's user avatar
  • 1,278
0 votes
1 answer
928 views

How do I keep process running in the background, even after a machine reboot?

What is the way to keep some process running (web server, database and so on) in background, and be sure that in case of system reboot it will start immediately again? I'd like to have this feature ...
Kamil Lelonek's user avatar
8 votes
3 answers
2k views

How to control the rate of automatic restarts of a runit service?

I have this runit service with run and log/run scripts properly working. As it happens, the service itself can crash for external reasons and might not be able to start for many minutes. The default ...
jpbochi's user avatar
  • 163
10 votes
3 answers
21k views

How do you configure runit logging

I am having trouble setting a service with logging using runit. Here is a brief overview of files and scripts I created according to runit's documentation and other resources I found on the internet: ...
oz123's user avatar
  • 1,278
6 votes
1 answer
8k views

runit does not kill process on sv stop or sv reload

i am running a headless selenium process along a jenkins server on an AMI linux box, all managed by runit. the problem is that issuing "sv stop selenium" or "sv reload selenium" do not term or kill ...
Andreas Wagner's user avatar
3 votes
3 answers
7k views

Trying to log with runit only returns 'unable to open supervise/ok'

Installed runit in Debian 7.4 in a Vagrant. My run script is working, but the moment I create a service/pants/log/ directory I start getting the following error: unable to open supervise/ok. My ...
Rudolf Vavruch's user avatar
0 votes
1 answer
90 views

searchd under runit continues writing to the runit's log

searchd (Sphinx) run file: #!/bin/sh set -e APP_PATH=/srv/application TARGET_USER=user exec chpst -u $TARGET_USER /usr/bin/searchd --pidfile --nodetach --config $APP_PATH/current/config/production....
Eugene's user avatar
  • 101
0 votes
2 answers
2k views

Java process restarting prematurely under runit

I'm attempting to run Logstash under supervision with runit. My run script for Logstash is simply #!/bin/sh SSL_CERT_DIR=/etc/ssl/certs exec /usr/bin/java -jar /usr/local/bin/logstash.jar agent -f /...
Gordon Seidoh Worley's user avatar
0 votes
1 answer
119 views

warning: /service/railo-jetty: unable to open supervice/ok: file does not exist

I'm trying to start railo-jetty using supervisor and I'm getting an error: warning: /service/railo-jetty: unable to open supervice/ok: file does not exist What could be the issue?
user1289167's user avatar
11 votes
5 answers
31k 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 ...
Alexandr Kurilin's user avatar
2 votes
2 answers
2k views

Using runit and monit to run / monitor services

I am configuring some services to run on Ubuntu server. I was going through the link below where they use runit to run the services and monit to monitor the services - http://rubyworks.rubyforge....
murtaza52's user avatar
  • 151
8 votes
2 answers
2k views

What's the point of using runit in combination with monit?

I see a lot of people using monit in combination with runit. Isn't that redundant? What is the point of using runit as well? Is it because it's more reliable when dealing with services (as it doesn't ...
Milan Novota's user avatar
12 votes
3 answers
8k views

How to write runit custom stop script

I want to have a custom "stop" script runit (runsv) to execute when having to stop/restart the process. Currently it simply kills the process, then runs the "finish" script. But in my case, my process ...
ddinchev's user avatar
  • 433
7 votes
2 answers
18k views

RUNIT - created first service directory, "sv start testrun" does not work

I'm pretty new to runit. I installed it on a Ubuntu host. What I did: 1) created a dir testrun in /etc/sv 2) created a script run in /etc/sv/testrun/run, the script content: #! /bin/bash exec /...
ddinchev's user avatar
  • 433
2 votes
1 answer
306 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 (...
Michael Neale's user avatar