LinuxQuestions.org
Visit Jeremy's Blog.
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 12-02-2012, 11:06 PM   #1
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Rep: Reputation: Disabled
nis start order issue


I have NIS servive (i.e ypbind service) which is configured to run at start level 27 & i have tomcat server startup script which is configured to run at start level 99, this script start the tomcat with an user account "adm" which
is defined in NIS server.For this script to work ideally the YPBIND services should start first.

I am having an issue in which i am getting the following error in /var/adm/messages,in which it shows the init script "startTOmcat" cannot be started as the required NIS user doesnt exist. My NIS service is getting invoked after the "startTomcat" script. Is there any way by which i can change this start order of NIS service as currently it is configured to run at order 27.please help
When i checked the /var/log/messages , i found the following errors :-
++++++++++++++++++++++++=
Nov 20 15:30:34 adm startTomcat: /bin/su user adm doesnt exist
+++++++++++++++++++++++++
 
Old 12-03-2012, 01:07 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just a few points that occur to me

1. normally we use the word 'level' to refer to init levels (0-6) and start number for individual scripts in a given init level dir eg rc3.d

2. given that 27 < 99, that should work; it sounds like you've got a problem in your NIS setup or maybe firewall.
http://www.linuxhomenetworking.com/w...onfiguring_NIS

3. generally /var/adm/messages => Solaris, /var/log/messages => Linux.
Can you clarify exactly which Unix/Linux we are talking about (inc version/release num)
 
Old 12-03-2012, 04:37 AM   #3
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Original Poster
Rep: Reputation: Disabled
I mean start order of YPBIND service is 27 & that of "startTomcat" script is 99.When my machine boots the tomcat script didnt starts & when i check the Linux (Red hat) /var/log/messages file i found that
NIS Bind is getting started afterwards my "startTomcat" script inspite its start order is 27.
When the machine boot up completes i am able to execute the "startTomcat" script manually.

Please suggest what can be the issue.


Thanks for your help
 
Old 12-03-2012, 08:55 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
What system are you using?

It might also help to have a listing of the rc3.d directory (single column).
 
  


Reply


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
Services start order kopper27 Linux - Newbie 1 08-07-2012 05:49 PM
how the NIS information will propagate fron NIS master to NIS slave & vicevarsa? dezavu Linux - Server 5 10-14-2011 03:08 AM
NIS db issue HeReigns Linux - Networking 0 12-09-2003 01:33 PM
Start-up module order? phishman3579 Slackware 1 07-03-2003 01:18 PM
Daemon start order josephswagner Linux - Software 1 03-13-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 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
Open Source Consulting | Domain Registration