Skip to content
Snippets Groups Projects
user avatar
Jason Young authored
Replaces logrotate_helper

Changelog: changed
Signed-off-by: default avatarJason Young <jyoung@gitlab.com>
10ce742f
History
Name Last commit Last update
..
libraries
LICENSE
README.md
metadata.rb

Runit cookbook (modified for GitLab)

The original README can be found at the upstream repo and contains details about the cookbook.

Changes made to upstream version (v5.1.7) can be found at the custom branch in our runit-cookbook mirror. In addition to those, while pulling to omnibus-gitlab repo, the following changes are made:

  1. Removed all files except the custom resource definition, metadata and LICENSE. This means, only the libraries folder from upstream is used by us.

  2. Added recipes for different init systems we support. The recipes (runit_*.rb files) and conf files for them (gitlab-runsvdir.* files) are available as part of our package cookbook.

  3. The gitlab::runit recipe does the init detection, and calls init system specific recipes as needed.

  4. Default values for runit cookbook specifying the location of service related files are overridden. This is done in attribute files of package cookbook. package cookbook is made a dependency of all other cookbooks that need runit, so the default attributes are propogated to them automatically.

  5. Allow for configuring the commands used to restart services with the various _command_name properties.

  6. Default use_init_script_sv_link to on