LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing runlevels for particular service in Debian (https://www.linuxquestions.org/questions/linux-newbie-8/changing-runlevels-for-particular-service-in-debian-4175559729/)

SarahGurung 11-24-2015 01:04 AM

Changing runlevels for particular service in Debian
 
Hello,

I am new with debian. I wanted to know the commands in debian to see the list of running services and their runlevels.

In CentOs we can do it by using chkconfig. I want to do the same in Debian but unable to do so. Moreover i am running postfix in Debian and whenever i restart the server, the changes made in postfix go backs to the default one. How can i rectify that.

Your help would be highly appreciated.

Thanks.

LanceTaylor 11-24-2015 01:29 PM

Debian does not give any special meaning to runlevels 2-5 by default. You can see which services are running with:
Code:

service --status-all
If you want to modify the runlevels you can do so with update-rc.d to add/remove symlinks in the /etc/rc?.d dirs.

SarahGurung 11-24-2015 11:50 PM

hello,

Thank You for the reply.

I went through the directories you ave mentioned and there are many rc... directories and inside every directory there is postfix. SO what should i do to make the changes in the postfix config file a permanent one because whenever i restart the server, the postfix config goes back to default. I even installed chkconfig and checked the runlevel of postfix, looks fine.

How can that be prevented?I want the changes to be there..


All times are GMT -5. The time now is 06:33 AM.