Where should init scripts be placed in Amazon Linux 2?

Solution 1:

The new way is to create systemd unit file for your application or startup script. It may seem like an overkill for simple startup scripts but it is the way that most current Linux distros adopted - Amazon Linux, Redhat, Ubuntu, Debian, they all use systemd so it pays to know how to do it properly.

Have a look here for example: Creating and modifying systemd unit files

Hope that helps :)