When ever I restart my EC2 instance I have to manually use the command systemctl start <service name > to start the service.

Is there any option to automate this thing in the Linux platform?

  • 2
    systemctl enable <service name>
    – jayhendren
    Commented Nov 19, 2021 at 21:47
  • @jayhendren Thanks for the simple and straight answer this worked!!
    – AV Reddy
    Commented Nov 24, 2021 at 9:30

1 Answer 1


There are a lot of articles online regarding this, but here is one that should be simple enough => Link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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