LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2015, 01:04 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
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.
 
Old 11-24-2015, 01:29 PM   #2
LanceTaylor
Member
 
Registered: Nov 2015
Location: Houston, Texas, US
Distribution: RHEL/CentOS, Debian/Linux Mint, SLES
Posts: 40

Rep: Reputation: 19
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.
 
Old 11-24-2015, 11:50 PM   #3
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
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..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Arch changing runlevels? szboardstretcher Arch 2 10-19-2012 06:53 PM
question on changing runlevels rip Linux - Server 3 08-14-2006 02:59 PM
changing runlevels stops X? CoonerTheRed Linux - Newbie 2 05-15-2005 10:45 AM
Prevent services from restarting when changing runlevels fearofcarpet Red Hat 1 11-13-2003 02:22 PM
changing runlevels at boot time on GRUB denominator Linux - Newbie 3 11-04-2003 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration