8

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
11

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`
|improve this answer|||||
4

Amazon Linux is ultimately based on an old version of CentOS/RHEL and doesn't support systemd.

https://forums.aws.amazon.com/message.jspa?messageID=731256

|improve this answer|||||
  • That thread is funny. AFAIK the only people who "want" Amazon Linux are internal to Amazon. And maybe not even there. – Michael Hampton Dec 21 '17 at 18:01
  • 1
    @MichaelHampton but now there's Amazon Linux 2, which will be awesome!!!1! I noticed that there have been very few updates to Amazon Linux 1 recently. – Tim Dec 21 '17 at 18:44
3

sadly that only amazon linux v2 support systemd. Amazon linux v1.0 does not https://aws.amazon.com/amazon-linux-2/

|improve this answer|||||
  • Does amazon Linux v2 also support SYSVinit? – overexchange Feb 5 at 3:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.