Questions tagged [runit]

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

runit is is an init replacement that runs on GNU/Linux, *BSD, MacOSX, Solaris, and can be ported to other Unix operating systems.

Its primary advantages over traditional init is service supervision (the ability to automatically restart daemons that have died), and reliable logging via pipes. In this regard it is similar to the utilities.

More information can be found at the runit homepage.

24 questions
1
vote
2 answers

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/streaming/run Then, created symlink to…
prayagupa
  • 121
  • 1
  • 6
1
vote
1 answer

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 things, otherwise login to each machine makes things…
nbari
  • 558
  • 1
  • 9
  • 28
1
vote
1 answer

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 directory /etc/sv/service_name/log, created run executable…
Somewater
  • 11
  • 3
1
vote
1 answer

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 IP address a.b.c.d, port number port. If port isn’t …
oz123
  • 1,258
  • 5
  • 17
  • 34
0
votes
0 answers

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 like to know how I can: keep the package as…
0
votes
1 answer

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 for not-provisioned user (without sudo access), so…
Kamil Lelonek
  • 113
  • 1
  • 7
0
votes
1 answer

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.sphinx.conf tail…
Eugene
  • 101
  • 1
0
votes
2 answers

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 /tmp/logstash.conf --log /var/log/logstash.log If I…
0
votes
1 answer

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
  • 103
  • 4
1
2