There are number of ways to control what services get started using both command line and graphical tools without having to going into the depths of your Linux system.
The command line tool chkconfig (usually located in /sbin) can be used to list and configure which services get started at boot time. To list all service settings run the following command:
/sbin/chkconfig --list
This will display a long list of services showing whether or not they are started up at various runlevels. You may want to narrow the search down using Linux grep command. For example to list the entry for the HTTP daemon you would do the following:
/sbin/chkconfig --list | grep httpd
which should result in something like:
httpd 0:off 1:off 2:off 3:on 4:off 5:off 6:off
Alternatively you may just be interested to know what gets started for runlevel 3:
/sbin/chkconfig --list | grep '3:on'
chkconfig can also be used to change the settings. If we wanted the HTTP service to start up when we at runlevel 5 we would issue the following command:
/sbin/chkconfig --level 5 httpd on
A number of graphical tools are also available for administering services. On RedHat you can run the following command:
redhat-config-services
The equivalent command on Fedora Core is:
system-config-services
The above graphical tools allow you to view which services will start for each runlevel, add or remove services for each runlevel and also manually start or stop services.
Tuesday, April 8, 2008
Working with Linux Services
Subscribe to:
Post Comments (Atom)
Linuxpoison Archive
-
▼
2009
(159)
-
▼
July
(10)
- Getting System Information (OpenSuSe) - phpSysInfo...
- Squid Authentication using RADIUS
- SQL client and front-end for multiple database- cr...
- Limit the CPU usage of an application (process) - ...
- Windows "Screen Of Death" now on Linux (GDM Theme)...
- Improving filesystem read performance using "noati...
- Auto reboot after kernel panic
- How do Flush DNS Cache in Linux
- Multi-protocol, Multi-source, Fast and Reliable Do...
- Query Apache logfiles via SQL
-
►
June
(28)
- Mac4lin - Give that Mac OS X look to Linux
- Complete and Reliable Password Manager for OpenSuS...
- Hiding secret data into image and audio files (Ope...
- Archiving, Encryption and File split tool - PeaZip...
- DenyHosts Installation and Configuration on OpenSu...
- How to calculates CRC checksum and the byte count ...
- Block ssh brute force attack on OpenSuSe
- Searching files using catfish - OpenSuSe
- History of Unix-like operating systems showing Lin...
- Kool Ubuntu GDM Themes
- KDE desktop Blogging Client - KBlogger
- Twitter client for KDE 4.2 - KDEtwitter
- Microblogging client for Twitter, Jaiku, Facebook,...
- Front-end for the ClamAV antivirus toolkit - klama...
- How to disable loading of unnecessary kernel modul...
- Increase the booting speed of Fedora
- How to Edit PDF Files in Linux - PDFEdit
- Multimedia Support in Fedora 11
- How to Cut/Split Video using Avidemux
- Create Ubuntu packages (deb)
- Install MS True Type Fonts in Fedora
- Increasing Bugzilla attachment size & saving large...
- Squid Error : Name error: the domain name does not...
- How to list Open Files and Network Connections
- Linux Market Share Passes 2%
- Setting the SUID/SGID bits
- OpenSUSE 11.1: Documentations
- Secure alternative to telnet
-
►
May
(20)
- Philosophy of free software (Video) by Richard Sta...
- Reducing load on web server by using reverse proxy...
- Next Generation of the Fastest P2P Program - Frost...
- (R)ecovery (I)s (P)ossible Linux rescue system
- Download/Upload files from torrents/Rapidshare or ...
- Fighting Spam mails
- How to set Cron/At Access Control
- How to set Access/Restrictions on users logins
- How to allow access to the mail server by individu...
- Create Screencasts on OpenSuSe with recordMyDeskto...
- Transferring audio/video to iPod on OpenSuSe
- Deluge BitTorrent client - OpenSuSe
-
▼
July
(10)








0 comments:
Post a Comment