Questions tagged [runit]

Either RUnit (an R package for unit testing) or runit (an Ubuntu Linux command-line tools for booting, running, and shutting down).

RUnit the R Package

RUnit (pronounced "r-unit") is an package for based upon , with additional code inspection and report generation tools.

runit the Unix Command Line tool

runit (pronounced "run-it") is a command line tool for the distribution. It performs the system’s booting, running, and shutdown in three stages. It must be run as Unix process no 1. It then performs the system’s booting, running, and shutdown in three stages.

48 questions
1
vote
1 answer

start and enable docker for system using runit

I don't have systemd in my Linux but runit. for systemd user, start and enable docker can be done as follows systemctl start docker.service systemctl enable docker.service But how to start docker for runit users?
SLN
  • 4,772
  • 2
  • 38
  • 79
1
vote
0 answers

Monolog vs workers vs supervisord

I can't get logs from the Symfony workers in my supervisord/runit log/stdout when starting my Docker container. Yes, I tried with supervisord and runit, but still does not work. If I have some exception in code I can see it regularly in stdout, but…
Kolesar
  • 1,265
  • 3
  • 19
  • 41
1
vote
1 answer

Is Systemd compatible with Runit?

I have a production environment based on Systemd and a test environment based on Runit (for some reason I cannot change this). My problem is that whenever I create a service I need the Systemd and Runit version duplicating the coding and test…
Salvatore D'angelo
  • 1,019
  • 3
  • 14
  • 39
1
vote
0 answers

How do I monitor and restart my application running in Docker based on memory usage?

I have an application running in Docker that leaks memory over time. I need to restart this application periodically when memory usage gets over a threshold. My application can respond to signals or by touching tmp/restart.txt (this is Rails)... as…
Eric M. Johnson
  • 6,657
  • 2
  • 13
  • 23
1
vote
2 answers

Runit in Docker container does not pass on environment variables

I'm trying to run a multi-process app in Docker with runit serving as init process but runit does not pass environment variables to the app: In Dockerfile: CMD ["runit"] The service file /etc/service/app/run looks like this: #!/bin/sh exec…
omusil
  • 289
  • 2
  • 10
1
vote
1 answer

RUnit: could not find function "checkEquals"

I am creating an R package with the standard directory hierarchy. Inside the R directory, I create a test subdirectory. In the R directory, I create a uTest.R file containing: uTest <- function() { test.suite <- defineTestSuite('test', …
vkubicki
  • 1,104
  • 1
  • 11
  • 26
1
vote
1 answer

Using the .setUp() and .tearDown() function in RUnit testsuite

I have the following issue with my R tests. I have test functions that need to alter the database, compute the results, check if these results are equal to the test values and clean the database. I am trying to do using transactions from MySQL and…
1
vote
1 answer

How to combine 3 commands into a single process for runit to monitor?

I wrote a script that grabs a set of parameters from two sources using wget commands, stores them into a variables and then executes video transcoding process based on the retrieved parameters. Runit was installed to monitor the process. The…
Andy
  • 583
  • 2
  • 9
  • 23
1
vote
1 answer

Use runit to only boot up the service and not supervise

I have a EC2 setup where I have a chef script that sets up a rails app with unicorn. Since I'm using application_ruby script, which uses runit to launch Unicorn at boot, I run into this problem where I need to manually disable runit after boot with…
zatatatata
  • 4,761
  • 1
  • 20
  • 41
0
votes
0 answers

Using runit on ubuntu to daemonize a spawn-fcgi proccess and the pid changes every second

below is my run script in runit in /etc/sv/myprogram/run #!/bin/sh exec spawn-fcgi -d /home/ubuntu/workspace/rtbopsConfig/rtbServers/rtbServer/ -f /home/ubuntu/workspace/rtbopsConfig/rtbServers/rtbServer/index.py -a 127.0.0.1 -p 9004 >>…
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
1 answer

Does runit support to delay to first start

I met a problem about the runit service bootstrap. The service will setup and curl an external service endpoint to get its data. It will restart over and over again and keep sending requests until the data is ready for the external service. So I…
Edward
  • 352
  • 1
  • 3
  • 14
0
votes
1 answer

Rails5 - what is the best approach for writing unit tests for services?

In my app i have serveral services (pure ruby). what is the best approach to implement unit tests? shoiuld i implement additional unit tests for controllers, or create a separated tests only for services? update - implemented solution: dedicated…
MaciekR
  • 262
  • 3
  • 17
0
votes
1 answer

ctrl+c not killing a process

I have a process that responds perfectly well to CTRL+C on my local machine. And it appears to also be working. But on an EC2 instance it freezes and becomes a defunct or zombie process. kill -9 doesn't remove it and I have to reboot the EC2…
hookenz
  • 36,432
  • 45
  • 177
  • 286
0
votes
1 answer

How can a runit' service restart return instantly?

I have a runit service I use to run a rails app using unicorn. Its restart command uses a signal (USR2) to handle a zero-downtime restart. Basically, it waits until the new process is ready before the old ones die. This causes a very long (40…
Doron
  • 3,176
  • 7
  • 35
  • 60
0
votes
2 answers

runit calls script instead of service command

Is is possible that runit calls script instead of calling directly the service. For example, I have an init script to launch uwsgi. Could i just call this script inside runit init script? Thank you in advance.
perigee
  • 9,438
  • 11
  • 31
  • 35