How to enable Linux service to make it run automatically?

In this short post, we will learn to enable Linux service so that it starts automatically when system reboot or start up. To make Linux service automatically run or start during server startup we have to enable it by using sudo command.

The easiest command to enable service is:

sudo systemctl enable <my-app.service>

Things to remember:

You can give only read access to my-app.conf file by using chmod 400 my-app.conf command.

Leave a Reply

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x