chef-cookbooks / runit

Development repository for the Chef Runit Cookbook
https://supermarket.chef.io/cookbooks/runit
Apache License 2.0
106 stars 197 forks source link

Fixing plat_specific_sv_name logic + to work with Amazon Linux 2 #236

Closed jonthebastard closed 6 years ago

jonthebastard commented 6 years ago

Description

Amazon Linux 2 uses systemd as opposed to Upstart; this change fixes the logic so that the recipe properly recognizes AL2:

  1. Version 7 of imeyer/runit will be installed (confirmed that runit-2.1.2-3.el7.centos.x86_64.rpm does indeed work on AL2 + creates the necessary runsvdir-start.service file)
  2. Use runsvdir-start for plat_specific_sv_name when using AL2
  3. Only use Upstart on Amazon versions that are not AL2 (and/or RHEL 6)

Issues Resolved

Installs correct runit package that is compatible with Amazon Linux 2 and uses the correct plat_specific_sv_name in order to start runsvdir via systemctl.

Check List

tas50 commented 6 years ago

Nice stuff. In the future you can skip the version bump since I have tooling that handles that and it causes merge conflicts a lot.

jonthebastard commented 6 years ago

Noted -- thank you for the info!