Solved

Service monitor

Posted on 2004-05-01
5
169 Views
Last Modified: 2013-12-15
Redhat comes with a kind of service monitor where you start/stop services, and view which ones are running.  I am not running Redhat, but I was wondering if there was a program out there that did kind of the same thing that I could install on my server.
0
Comment
Question by:lwinkenb
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 10969071
What Linux are you using?
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 10969413
It's linuxfromscratch
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10971729
In that case you won't have a tool like RedHat's services manager. I don't know if Linuxfromscratch uses the SysV init script mechanism or not. If it does it may have 'chkconfig' which is a command line method of managing services.
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 10972588
I installed chkconfig on the server.

It appears that chkconfig is just a tool for managing the symlinks in the /etc/rc.d/rcX.d/ directories.  For instance, if I run
chkconfig proftpd off
It will remove the 'start' symlinks in runlevels 3,4, and 5, and replace them with 'kill' symlinks.

chkconfig doesnt actually start or stop services, and it doesn't tell me which services are currently running (unless I'm missing something).
0
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 10973538
'chkconfig --list' will show you what services are enabled or disabled. You can always stop or start a specifiv service with '/etc/init.d/service-name stop|start'
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question