| Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-28-2012, 03:40 PM
|
#1
|
|
Member
Registered: Dec 2011
Distribution: RHEL, CentOS, Ubuntu
Posts: 45
Rep:
|
Kickstart - Enable osad & nscd service
Hello,
After taking over the RHEL admin responsibilities (while still being quite green), I am looking into our kickstart builds and noticed that there are "snippets" being used to enable a couple of services post-build.
When I looked, I noticed that these services (osad & nscd) are explicitly set to be enabled in the kickstart script.
I have not been able to find a log file or error message as to why these services are not being enabled without using the additional snippets.
Does anyone have any idea where I can find why these services are not enabled after a kickstart build unless I use an additional post-install script to enable them?
The line in the kickstart script is:
services --disabled=kudzu,firstboot,atd,lvm2-monitor,isdn,mdmonitor,nfslock,cups,bluetooth,pcscd,hidd,autofs,hplip,rawdevices,xinetd,gpm,xfs,yum-updatesd,smartd,rpcgssd,rpcidmapd,avahi-daemon,iscsi,iscsid,mcstrans,restorecond,readahead_early --enabled=ntpd,auditd,psacct,snmpd,osad,nscd
Any help would be appreciated! Thanks!
|
|
|
|
03-28-2012, 09:01 PM
|
#2
|
|
Senior Member
Registered: Aug 2009
Posts: 3,497
|
Maybe they're being disabled in the %post section ? .. I can't think of any reason for it not to work unless there was a space between 'snmpd' and 'osad'
|
|
|
|
03-29-2012, 12:08 PM
|
#3
|
|
Member
Registered: Dec 2011
Distribution: RHEL, CentOS, Ubuntu
Posts: 45
Original Poster
Rep:
|
kbp,
I looked all through the finished script and verified that there is no white space in the services line. In fact, originally, osad and nscd were the first two services listed (--enabled=osad,nscd,ntpd....) and I moved them to the end...just in case order had anything to do with it.
Also, I found no mention of osad apart from the above-mentioned "services" call and the insertion of the snippet that I still have to add that just does a "chkconfig osad on". Same goes for nscd.
We are a little behind on patching our Satellite server, so I don't know if that could have anything to do with it. We're going to get Satellite current on patching and everything, but that's a fairly major thing that tends to break lots of stuff, so we're not rushing into that. Who knows...maybe that's all it is.
|
|
|
|
03-30-2012, 07:47 AM
|
#4
|
|
Senior Member
Registered: Aug 2009
Posts: 3,497
|
I usually do my service disabling/enabling in the post section so I can have a bit more control
e.g.
Code:
if [[ "$NAS" = "y" ]]
then
echo "[*] enabling services for NAS"
for service in netfs nfs nfslock portmap
do
chkconfig $service on
echo "... $service enabled"
done
fi
If you have the time you could try adding it as 2 lines:
Code:
services --disabled=kudzu,firstboot,atd,lvm2-monitor,isdn,mdmonitor,nfslock,cups,bluetooth,pcscd,hidd,autofs,hplip,rawdevices,xinetd,gpm,xfs,yum-updatesd,smartd,rpcgssd,rpcidmapd,avahi-daemon,iscsi,iscsid,mcstrans,restorecond,readahead_early
services --enabled=ntpd,auditd,psacct,snmpd,osad,nscd
Last edited by kbp; 03-30-2012 at 07:49 AM.
|
|
|
|
03-30-2012, 12:17 PM
|
#5
|
|
Member
Registered: Dec 2011
Distribution: RHEL, CentOS, Ubuntu
Posts: 45
Original Poster
Rep:
|
kbp,
I wondered about that as I was originally wondering if I was running into an issue of having too long of a string. We're using Satellite, so I don't know if there's a way to separate those out unless I just go directly into modifying the script manually. Not opposed to doing that, but I just think it shouldn't HAVE to be done that way. (I like when stuff just works the way it's supposed to.)
I can definitely try your suggestion, though. It might help to narrow down the cause of why it's not working the way I've got it.
Thanks!!
|
|
|
|
05-08-2012, 10:56 AM
|
#6
|
|
Member
Registered: Dec 2011
Distribution: RHEL, CentOS, Ubuntu
Posts: 45
Original Poster
Rep:
|
With the help of Red Hat support, I think we finally found it...
It looks like after I added a "--enablecache" switch after "authconfig ...." my services now seem to be running and enabled after kickstarting.
Yay Red Hat!!
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:49 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|