LinuxQuestions.org
Register a domain and help support LQ
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 07-22-2006, 08:06 AM   #1
tcv
Member
 
Registered: Apr 2003
Location: Billerica, MA
Posts: 114

Rep: Reputation: 15
How can I check what services I run?


Hi,

I have the opportunity to play around with Trustix which is, I believe, a debian based distro.

I'd like to know how to check what services that have been configured to and are running.

Cheers,

Mike...
 
Old 07-22-2006, 08:30 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
"ps -e" gives you all the running processes. There should be a menu command somewhere that does the same thing.
 
Old 07-22-2006, 09:08 AM   #3
tcv
Member
 
Registered: Apr 2003
Location: Billerica, MA
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks, man!

Although that doesn't seem to give me exactly what I want. I know that Postfix runs, for instance, but I don't see it in that list.

Now, if I do 'ps -aux' I do see something something called "/usr/lib/postfix/master" but I can't tell what kind of file "master" is... it's not a directory. It's listed like this: "master*"

Is there a place to tell what is starting up with the system? Something that I would edit to enable and disable services?

m

[EDIT: "master" is the primary listening daemon.]

Last edited by tcv; 07-22-2006 at 09:11 AM.
 
Old 07-22-2006, 09:31 AM   #4
tcv
Member
 
Registered: Apr 2003
Location: Billerica, MA
Posts: 114

Original Poster
Rep: Reputation: 15
Well, I found out about init.d. And I see how to start|stop|status a service, but I don't see how to find out what starts at boot.
 
Old 07-22-2006, 09:38 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,142

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
trustix uses the system V init scripts. To see the services that are configured:
chkconfig --list

It will show you which services are configured to start at boot and which runlevel.
chkconfig can be used to start / services at boot.
The service command can be used to start/stop/restart a process

See man pages for more details.

BTW I am running trustix 2.2

Last edited by michaelk; 07-22-2006 at 09:41 AM.
 
Old 07-22-2006, 09:52 AM   #6
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Depends on the boot level.
In suse 10.0 the tree looks like this:
/etc/init.d
/boot.d
/rc0.d
/rc1.d
/rc2.d
/rc3.d
/rc4.d
/rc5.d
/rc6.d
/rcS.d
inside these folders are the scripts to start a service at a certain runlevel.
After /boot.d
runlevel 5 starts the scripts in /rc5.d
runlevel 3 starts the scripts in /rc3.d

and so on.

Should be similar on Trustix.

if you run KDE try the command ksysguard to see all the processes running.

I hope this helped you a little.
 
Old 07-22-2006, 10:23 AM   #7
tcv
Member
 
Registered: Apr 2003
Location: Billerica, MA
Posts: 114

Original Poster
Rep: Reputation: 15
Guys! This helped bigtime, especially the chkconfig. That makes complete sense to me. Thanks!

michaelk, one of my clients runs Trustix as a web and mail server. If you don't mind my asking, can you tell me what you run it to do?

My Trustix is 2.1.
 
Old 07-22-2006, 10:30 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,142

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I use mine just for a file and web server.

Have you considered upgrading to 2.2. or 3.0, 2.1 is no longer being supported.
 
Old 07-22-2006, 10:38 AM   #9
tcv
Member
 
Registered: Apr 2003
Location: Billerica, MA
Posts: 114

Original Poster
Rep: Reputation: 15
Considered it? Yes, absolutely. But I am no where near smart enough to do it. I did find a 2.1 to 2.2 upgrade post on the wiki, however. It doesn't look terribly difficult.
 
Old 07-22-2006, 11:00 AM   #10
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Would apt-get upgrade work?
 
Old 07-22-2006, 11:04 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,142

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by Sören Schneider
Would apt-get upgrade work?
No, it will not work.
 
Old 07-22-2006, 11:59 AM   #12
tcv
Member
 
Registered: Apr 2003
Location: Billerica, MA
Posts: 114

Original Poster
Rep: Reputation: 15
Here is how you upgrade from 2.1 to 2.2.

2.x to 3.0 requires a complete reinstall.
 
  


Reply

Tags
debian, services


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HOWTO Check, Start and Stop Services GNewbie MEPIS 9 08-22-2012 11:09 PM
Run levels 3 & 5 services live_dont_exist Linux - General 1 04-10-2006 03:29 AM
Services run at boot-up vincebs Ubuntu 3 05-09-2005 11:00 AM
Which services to run and which to remove on a server? emilioestevezz Linux - Networking 1 09-16-2004 01:15 PM
What services should I not run? Arisen Sun Linux - Security 3 03-20-2003 12:26 PM


All times are GMT -5. The time now is 05:50 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration