I started using Amazon Linux AMIs. It seems to have the /etc/systemd/system/ folder, but I am not able to use systemctl to start stop a service I added to the /etc/systemd/system/ folder.
$ systemctl bash: systemctl: command not found
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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`
Amazon Linux is ultimately based on an old version of CentOS/RHEL and doesn't support systemd.
sadly that only amazon linux v2 support systemd. Amazon linux v1.0 does not https://aws.amazon.com/amazon-linux-2/