LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-19-2017, 12:23 PM   #1
banter
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Rep: Reputation: Disabled
init re-executing every 30 seconds on RHEL6


I'm running RHEL6 and I noticed my upstart jobs keeping getting set to 'stop/waiting' shortly after starting them. It seems to be corresponding with what I'm seeing in my system logs:

2017-12-19T10:17:57.464471-08:00 <server name> init: Re-executing /sbin/init
2017-12-19T10:17:57.468134-08:00 <server name> init: Re-executing /sbin/init
2017-12-19T10:17:57.470619-08:00 <server name> init: Re-executing /sbin/init
2017-12-19T10:18:27.656134-08:00 <server name> init: Re-executing /sbin/init
2017-12-19T10:18:27.659014-08:00 <server name> init: Re-executing /sbin/init
2017-12-19T10:18:27.662703-08:00 <server name> init: Re-executing /sbin/init

init is being re-executed every 30 seconds or so. My question is why is this happening, and how can I stop it if possible?

Thanks!
 
Old 12-19-2017, 01:51 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Typically to me this would be because it is a service which will restart if it is seen to fail. Perhaps you should learn what is driving the execution of /sbin/init and add some debug. It probably thinks (or knows) that something has failed, and is trying to be auto-reliable, because that would be the function of a server.
 
Old 12-19-2017, 01:56 PM   #3
banter
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
That was my thought as well; try to figure out what is executing init, but I haven't been able to. Any idea where I should look to find this information?
 
Old 12-19-2017, 02:01 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I don't know RHEL and how it initializes. Their customer portal will likely tell you. An alternative I'm told, is to look at CentOS which is the same as RedHat just free and not with paid support.

A quick web search seems to show that it uses the /etc/rc.d method. So I'd look for a script in that hierarchy which is running /sbin/init. Or perhaps just a find and -exec grep under the /etc tree will do this also.
 
Old 12-19-2017, 03:07 PM   #5
banter
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I ran this command:

find /etc -exec grep "/sbin/init " {} +

result:

/etc/rc.d/rc.sysinit: # if /sbin/init is not labeled correctly this process is running in the
/etc/rc.sysinit: # if /sbin/init is not labeled correctly this process is running in the


Unfortunately it didn't turn up anything. Any other ideas?

Thanks for the help!
 
Old 12-19-2017, 08:18 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
init is the program that starts all other processes at boot in the defined run level...It's the program that runs the scripts in the /etc/rc.d hierarchy.
I did a search for
"init: Re-executing /sbin/init"
and the first returned link was to a RedHat support page that requires login to read. I'm not a RedHat customer, but you are, right?
Have you asked RedHat support?

Last edited by scasey; 12-19-2017 at 08:20 PM.
 
Old 12-20-2017, 02:18 PM   #7
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,792

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
trace what init starts.
Code:
strace -e execve -fp 1
In case it terminates, trace everything it does
Code:
strace -fp 1
(Do this only if your system load is low.)

Last edited by MadeInGermany; 12-20-2017 at 02:27 PM.
 
  


Reply



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
Init.d script not executing at shutdown and reboot roberbizimhatemo Linux - General 19 07-02-2019 04:35 AM
the program hang when executing libusb-init,why? viktor2000 Linux - Newbie 1 10-18-2011 06:00 AM
init.d script not executing and missing from chkconfig gw1500se Mandriva 3 11-19-2010 11:27 AM
clurgmgrd keeps runnings custom init.d script's status every 30 seconds or so Qwerty9119 Red Hat 1 10-17-2007 08:41 AM
INIT: PANIC: segmentation violation! sleeping for 30 seconds. zsolt_tuser Linux - Kernel 1 02-28-2007 09:46 AM

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

All times are GMT -5. The time now is 03:26 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