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

runit call script with start/stop

I've some SysVinit scripts with start/stop, they are used for remote server deployment, as now i am using runit in other deployment purpose, and don't want to duplicate the scripts (maintenance reason). Is it possible that runit invokes these…
perigee
  • 9,438
  • 11
  • 31
  • 35
0
votes
1 answer

Writing a runit script for a program that requires a passphrase

I wrote a python program that requires a passphrase to run, and I would like to securely read the passphrase at startup. I would also like to supervise this program with runit. So far, my program reads the passphrase from the environment variable…
user48678
  • 2,382
  • 3
  • 24
  • 30
0
votes
0 answers

How to use runit to supervise a rails microservice

I'm attempting to do some continuous deployment of some rails micro-services on my ubuntu server, I'm thinking maybe runit would be a good idea to supervise these processes, then use migrations in chef to update the microservice - but I'm stuck…
MikeW
  • 4,749
  • 9
  • 42
  • 83
0
votes
1 answer

Does runit reap orphan processes?

I am writing a small Docker container based on Phusion baseimage which provides runit out of the box. I put Cassandra and Opscenter agent in my container. Both are started as service under /etc/service (as in the doc). This blog post mentions that…
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
0
votes
1 answer

berks-api will not run on ubuntu in azure - get Permission denied @ rb_sysopen - /etc/chef/client.pem

As part of our chef infrastructure I'm trying to set up and configure a berks-api server. I have created an Ubuntu server in azure and i have bootstrapped it and it appears as a node in my chef-server. I have followed the instructions at github -…
0
votes
1 answer

RUnit does not stop docker-compose's containers

I would like to have a RUnit service to supervise a set of containers launched by docker-compose tool, here's my the runit script: In /etc/sv/app/run #!/bin/bash exec 2>&1 APP_HOME=/home/myapp source $APP_HOME/env.sh exec docker-compose -f…
Barbadoss
  • 1,136
  • 3
  • 14
  • 22
0
votes
1 answer

unicorn using old release executable (rbenv + runit)

I am running into an issue that should be easy to fix but I can't seem to find the magic. Unicorn is using runit and attempting to point to the current releases Gemfile. At the end of each deploy, unicorn is sent a USR2 signal and the old master is…
0
votes
1 answer

Can't run PhantomJS with Runit (node: ../deps/uv/src/unix/core.c:431: uv__close: Assertion `fd > -1' failed)

PhantomJS works fine when I run it manually. But when I run it with runit I get this error in the logs: node: ../deps/uv/src/unix/core.c:431: uv__close: Assertion `fd > -1' failed. This is the runit script in…
ChocoDeveloper
  • 14,160
  • 26
  • 79
  • 117
0
votes
0 answers

I can't get runit to work with chef and puma, it might be a runit issue but I'm not sure

Here is the runit script: #!/bin/sh cd <%= @options[:release_path] %> exec 2>&1 exec chpst -u <%= @options[:owner] %>:<%= @options[:group] %> <%= @options[:puma_command] %> -C config/puma.rb Here is the runit log script: #!/bin/sh exec chpst -u…
AntelopeSalad
  • 1,736
  • 1
  • 16
  • 27
0
votes
2 answers

Sidekiq fails to stop under runit

We run many services under runit and it has been great. Recently started using Sidekiq which is amazing. It's running it under runit. The issue is that when running "sv stop ." it's not stopping the process. Calling restart actually brings up…
0
votes
1 answer

can't install runit after DEBIAN_FRONTEND=noninteractive install -y gcc

I hope to install gcc and runnit automatically. But when I "sudo apt-get install gcc" it comes up a dialog to make choose the configuration. So I use sudo DEBIAN_FRONTEND=noninteractive apt-get install -f -y --force-yes --no-install-recommends…
wonderflow
  • 665
  • 2
  • 7
  • 18
0
votes
1 answer

runit spawns the process twice after reboot

After reboot runit respawns the program it has launched already. There are no error messages in the service log. The program registered as a service starts working properly but after about 10-15s it is being restarted by runit.
ifn
  • 1
  • 2
0
votes
1 answer

Start Unicorn with Runit and User's RVM

I'm deploying my Rails App servers with Chef. Have just swapped to RVM from a source install of Ruby (because I was having issues with my deploy user). Now I have my deploy sorted, assets compiled and bundler's installed all my gems. The problem I…
simonmorley
  • 2,810
  • 4
  • 30
  • 61
0
votes
1 answer

Git pull leaving pulled files in a weird state

I am experiencing a very weird issue with git. I have a ruby app running on the server under runit management. This app has an auto update functionality. It executes git ls-remote to check if a pull and service restart is required. This part works…
user56250
0
votes
2 answers

R developing a bioconductor package with TDD (RUnit)

I am trying to follow the BioConductor RUnit guidelines. I have followed the the minimal setup so I have: Suggests: RUnit, BiocGenerics in DESCRIPTION BiocGenerics:::testPackage("MyPackage") in MyPackage/tests/runTests.R and some test_XXX.R files in…
tucano
  • 224
  • 2
  • 9