Linux service basics

https://learn.kodekloud.com/user/courses/devops-pre-requisite-course/module/c990b480-a646-4321-89b4-a6fbc217f4e2/lesson/0a7c8acf-aa82-4c19-93f2-d7a34aec6f61?autoplay=true

I am doing the Linux lab and the question is to enable “httpd” service to start automatically when the system starts.

I created a .services file and added the config below.

Is this wrong>?

The hint says systectl enable HTTPd. I thought we need to create a file…

Thanks

Hi @chanakya18,

The httpd service is installed, we just need to enable it.

Thanks Raymond.

Am I suppose to see httpd.service file in /etc/systemd/system/ folder?

No, you typically won’t see httpd.service in /etc/systemd/system/. It’s usually in /usr/lib/systemd/system/httpd.service. The /etc/systemd/system/ folder is mainly for custom overrides.

1 Like