The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > SuSE
.
google unix.com



SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris 8 how do I enable and disable services? (equivalent of chkconfig on Linux) aussieos SUN Solaris 3 06-12-2009 09:24 AM
how to disable keys in script draco Shell Programming and Scripting 5 09-11-2008 04:37 PM
Running services, how to disable some? empty UNIX for Dummies Questions & Answers 2 03-19-2008 07:33 PM
Disable/Enable HP print services SCO OS 5 sighbrrguy UNIX for Advanced & Expert Users 4 01-09-2008 12:33 PM
how to disable services csaunders AIX 4 05-29-2004 11:50 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-16-2009
s_linux s_linux is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 81
Script to disable services

Hi All,

I want to disable bunch of unused services on SLES and RHEL to improve the performance. Since we have more than 100 servers to disable services, I want to do with some script. Any one can give me an idea how to write a script to disable services. Thanks
  #2 (permalink)  
Old 06-17-2009
mark54g mark54g is offline
Registered User
  
 

Join Date: May 2008
Posts: 371
Quote:
Originally Posted by s_linux View Post
Hi All,

I want to disable bunch of unused services on SLES and RHEL to improve the performance. Since we have more than 100 servers to disable services, I want to do with some script. Any one can give me an idea how to write a script to disable services. Thanks
How about creating a list of the services you want to disable

then just use a loop

for i in `cat /tmp/service-disable`
do
chkconfig --levels 3 5 $i off
done
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0