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:
-
Removed all files except the custom resource definition, metadata and LICENSE. This means, only the
libraries
folder from upstream is used by us. -
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 ourpackage
cookbook. -
The
gitlab::runit
recipe does the init detection, and calls init system specific recipes as needed. -
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. -
Allow for configuring the commands used to restart services with the various
_command_name
properties. -
Default
use_init_script_sv_link
to on