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
9
votes
1 answer

Why does RUnit change my random numbers?

In a unit test I start a helper function (generating test data) with: set.seed(1) I was developing the unit test interactively like this: source('tests/runit.functions.R');test.something() But then when I went to run the tests from my run_tests.R…
Darren Cook
  • 27,837
  • 13
  • 117
  • 217
7
votes
3 answers

runit: unable to lock supervise error on debian

I'm trying to set up runit and logging on my debian wheezy VM. So far I've managed to get gunicorn service to start by following this setup: sudo mkdir /etc/sv/gunicorn sudo vi /etc/sv/gunicorn/run sudo ln -s /etc/sv/gunicorn/run /etc/service My…
jwesonga
  • 4,249
  • 16
  • 56
  • 83
7
votes
2 answers

automatically generate test cases in RUnit or testthat

How can I automatically generate test cases in RUnit? For example, let's say I have a simple sum() function: sum <- function(x, y) { return (x + y) } I would like to test this function on a series of different test cases: test_cases <- c(…
dalloliogm
  • 8,718
  • 6
  • 45
  • 55
6
votes
2 answers

is it reasonable to run docker processes under runit/daemontools supervision

I have been running docker processes (apps) via docker run … But under runit supervision (runit is like daemontools) - so runit ensures that the process stays up, passes signals etc. Is this reasonable? Docker seems to want to run its own…
Michael Neale
  • 19,248
  • 19
  • 77
  • 109
4
votes
2 answers

Nginx and runit....what is best practice

I am rather confused about ensuring that nginx is always up. My understanding the init.d script justs start and stops nginx. Is this correct? Then in the docs its says to keep daemon = off; Now, I would like to use runit and the below is my runit…
Tampa
  • 75,446
  • 119
  • 278
  • 425
4
votes
1 answer

Catching signals sent by runit (sv stop )

I have a python program that is running a number of worker processes. Because this has to be handled properly to avoid orphaned processes, I have implemented a signal handler to shutdown all worker processes. The program starts more or less like…
Christian P.
  • 4,784
  • 7
  • 53
  • 70
3
votes
2 answers

Runit exits with error if process tells itself to go down

I'm seeing some unexpected behavior with runit and not sure how to get it to do what I want without throwing an error during termination. I have a process that sometimes knows it should stop itself and not let itself be restarted (thus should call…
Gordon Seidoh Worley
  • 7,839
  • 6
  • 45
  • 82
3
votes
1 answer

How can I have a custom restart script for runit?

I'm using runit to manage an HAProxy and want to do a safe restart to reload a configuration file (specifically: haproxy -f /etc/haproxy/haproxy.cfg -sf $OLD_PROCESS_ID). I figure that I could run sv restart haproxy and tried to add a custom script…
Nathan Perry
  • 291
  • 2
  • 11
3
votes
3 answers

Create a runit service that doesn't automatically start

I'm working on a Docker container built on Phusion's baseimage which needs to have a number of services only started on demand. I'd like these services to remain as runit services, I'd just like them to not automatically start on boot. As seen in…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
3
votes
2 answers

Source an R file without running it (unit-testing)

We're building an R codebase and are hoping to unittest any functions that we write. So far, we have found two testing libraries for R: RUnit and testthat. After doing a bit of sandboxing, we have developed a solid method for testing code every time…
stephentgrammer
  • 470
  • 6
  • 16
2
votes
0 answers

Why does "dbus: ...wpa_supplicant... getter failed" shows up on boot?

This shows up after booting my x220 thinkpad: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface.P2PDevice dbus_property=P2PDeviceConfig getter failed Btw, I'm using Artix Linux with Runit and also NetworkManager.
hax0rs
  • 21
  • 1
2
votes
0 answers

Cannot start Subgit synchronisation automatically within Gitlab Docker Container via runit

My local Gitlab CE Docker container has Subgit included. When the Gitlab container is restarted the Subgit synchronisation should also start automatically. My solution is derived from the original Dockerfile of gitlab/gitlab-ce on Dockerhub. In the…
se2016
  • 21
  • 3
2
votes
0 answers

Killing foreman child processes via runit

I'm using runit for process supervision. I have the following simple run script for a service: #!/bin/sh -e cd /opt/myapp exec 2>&1 exec chpst -u ubuntu /home/ubuntu/.rvm/bin/myapp_foreman start -t 1 -c web=1,worker=1 This starts foreman wrapped…
Gordon Seidoh Worley
  • 7,839
  • 6
  • 45
  • 82
2
votes
0 answers

Starting on a puppet Railo-jetty module and deploying it

I'm starting on writing a puppet module to install deploy and manage Railo with jetty using runit ... Any help would be greatly appreciated i know the basis of it should have ... We need a zip file railo express unpack the zip tell the system to…
Gideon Maina
  • 849
  • 10
  • 25
1
vote
0 answers

runit startup script without pause

I am using a runit based linux distro (artix) and I would like to run a script once at startup with the root user. To achieve this I usually create a service with this kind of run script: #!/bin/bash & pause This allow the command…
1
2 3 4