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
0
votes
0answers
6 views

How to read a file generated by svlogd

I have Gitlab running and it's using svlogd to write log files. (Documentation) The log files look like this: (...) -rwxr--r-- 1 root root 140248 Oct 13 00:57 @400000005da24c662f8440d4.s* -rwxr--r-...
2
votes
1answer
77 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 ...
0
votes
0answers
50 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 ...
1
vote
0answers
166 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
1
vote
0answers
657 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. ...
1
vote
2answers
1k 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/...
1
vote
1answer
593 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 ...
2
votes
0answers
952 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 ...
13
votes
2answers
5k views

How do I chose between upstart, runit, supervisor, daemontools, and etc. for restarting a process if it dies?

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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
754 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 ...
0
votes
1answer
181 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 ...
8
votes
3answers
1k 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 ...
6
votes
2answers
10k views

How do you configure runit logging

I am having trouble with setting service with proper logging using running. Here is a brief overview of files and scripts I created according to runit's documentation and other resources I found in ...
2
votes
1answer
5k 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 ...
2
votes
3answers
5k 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 ...
0
votes
1answer
60 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....
0
votes
2answers
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 /...
0
votes
1answer
96 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?
7
votes
5answers
15k 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 ...
2
votes
2answers
1k 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....
8
votes
2answers
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 ...
10
votes
3answers
6k 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 ...
4
votes
2answers
11k 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 /...
2
votes
1answer
182 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 (...