Amazon Linux v 2.0 does support systemd and comes installed by default:
cat /etc/os-release
NAME="Amazon Linux"
VERSION="2.0 (2017.12)"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2.0"
PRETTY_NAME="Amazon Linux 2.0 (2017.12) LTS Release Candidate"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2.0"
HOME_URL="https://amazonlinux.com/"
rpm -qa | grep -i systemd
systemd-libs-219-42.amzn2.4.x86_64
systemd-219-42.amzn2.4.x86_64
systemd-sysv-219-42.amzn2.4.x86_64`
Answer from supaflysnooka on serverfault.comAmazon Linux v 2.0 does support systemd and comes installed by default:
cat /etc/os-release
NAME="Amazon Linux"
VERSION="2.0 (2017.12)"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2.0"
PRETTY_NAME="Amazon Linux 2.0 (2017.12) LTS Release Candidate"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2.0"
HOME_URL="https://amazonlinux.com/"
rpm -qa | grep -i systemd
systemd-libs-219-42.amzn2.4.x86_64
systemd-219-42.amzn2.4.x86_64
systemd-sysv-219-42.amzn2.4.x86_64`
sadly that only amazon linux v2 support systemd. Amazon linux v1.0 does not https://aws.amazon.com/amazon-linux-2/
centos - No package systemd available on Amazon linux EC2 - Unix & Linux Stack Exchange
Have the Amazon Linux AMI's Switched to Systemd?
When using Amazon AMI for Linux, should I use systemd or sysv init files for creating a service for my Java based app?
How to update systemd to version >219 on Amazon Linux 2
- First check what Amazon linux version you have runnng on using the
command
cat /etc/os-release- If it is Amazon Linux Version 2, then it does support systemd and comes installed by default.
- If it is Amazon linux version 1, then it doesn't support cause Amazon Linux is ultimately based on an old version of CentOS/RHEL.
if it is version 1 (amazon linux), you just need to switch to any other linux distribution that supports systemd. You can't yum install systemd like a package

sudo service nginx status
just use the service command
In earlier versions of RHEL use the service command as explained in the documentation here.
# service service_name start
Therefore, in your case:
# service iptables start
You can replace start with restart, stop, status.
List all services with:
# service --status-all
Curious if the Amazon AMI's I was using back in 2014/2015 have migrated to systemd from initd? I recall them specifically keeping their AMI on initd specifically but wondering if things have changed. Is there a wiki where I can read up on the official Amazon AMI changes and updates?
Any canonical examples for creating custom services? Googling shows this.
Looking to see if the official latest Amazon Linux AMI supports systemd w/o me having to remove / alter the default OS config from launch.