Amazon Linux 2 uses systemd as opposed to Upstart; this change fixes the logic so that the recipe properly recognizes AL2:
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)
Use runsvdir-start for plat_specific_sv_name when using AL2
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.
Description
Amazon Linux 2 uses
systemd
as opposed to Upstart; this change fixes the logic so that the recipe properly recognizes AL2:imeyer/runit
will be installed (confirmed thatrunit-2.1.2-3.el7.centos.x86_64.rpm
does indeed work on AL2 + creates the necessaryrunsvdir-start.service
file)runsvdir-start
forplat_specific_sv_name
when using AL2Issues Resolved
Installs correct
runit
package that is compatible with Amazon Linux 2 and uses the correctplat_specific_sv_name
in order to startrunsvdir
viasystemctl
.Check List