[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aix-l
Subject:    Re: AIX 5.3 "init q" doesnt re-read /etc/inittab
From:       "Davignon, Edward" <Edward.Davignon () ENERGYEAST ! COM>
Date:       2010-02-11 17:12:34
Message-ID: 3FF48394E621F14F97A9117CF92D138E58245823DC () EEROCH1CMS1 ! Energyeast ! net
[Download RAW message or body]

Thanks.


Edward.Davignon@energyeast.com<mailto:Edward.Davignon@energyeast.com>
Lead Analyst - Distributed Systems Unix
Iberdrola USA Management Corporation
Rochester, NY

________________________________
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of Wei=
nmann, Robert
Sent: Friday, December 12, 2008 4:16 PM
To: aix-l@Princeton.EDU
Subject: Re: AIX 5.3 "init q" doesnt re-read /etc/inittab

The "correct" way to update inittab is to use the mkitab, chitab, and rmita=
b commands.

If an entry in inittab is set to run once, then rereading inittab will not =
restart the entry.  You need to change the action field to respawn, save in=
ittab, and then kill the process.  I think init actually rescans inittab co=
ntinually, so it should restart automatically.

Bob
-----Original Message-----
From: Davignon, Edward [mailto:Edward.Davignon@ENERGYEAST.COM]
Sent: Friday, December 12, 2008 3:40 PM
To: aix-l@Princeton.EDU
Subject: Re: AIX 5.3 "init q" doesnt re-read /etc/inittab



As root,

  nohup /usr/bin/topas -R 2>&1 >/dev/null &

works nicely for processes like this one that do not have any environment v=
ariable dependencies, but I've been watching this thread hoping for an answ=
er for how to properly update inittab and start a process that has environm=
ent variable dependencies.



For example, process schedulers like UC4 should have a consistent environme=
nt setup every time it starts up.  It should not depend on /.profile or $EN=
V (usually $HOME/.kshrc or $HOME/.env) that may override settings in /etc/e=
nvironment also getty, login, and sh/ksh set environment variable.  For exa=
mple, I had a COBOL runtime environment work fine until it was restarted wi=
th a missing or unknown TERM variable.  It worked fine because the script w=
as started with sudo -H -b su - -c "/path/to/script start" but failed at re=
boot when init ran the script because TERM was not set.  It was especially =
difficult to track down because it recognized xterm, but not vt220, so rest=
arting it from the command line had mixed results depending on which user r=
estarted it and what term type they were using.  Another time a script depe=
nded on setting LOGNAME.  Although this is bad practice to set LOGNAME, it =
worked fine when the script was started from a bash command line, but faile=
d at re-IPL since init used sh which called /etc/profile which has the comm=
and "readonly LOGNAME".  I could also get into issues with ulimits when thi=
ngs are not started consistently by the same user.



I was wondering what the correct way to add something to inittab and/or SRC=
 is.  Is it appropriate to have SRC start a wrapper script?  Or is there ad=
ditional overhead involved in programming something to be under SRC control=
?  I'm looking at these tools because they always start processes the same =
way and do not depend on the current user's environment which is often slig=
htly different between test and production machines.  I'm trying to minimiz=
e surprises when promoting code from dev, test, and prod and also at re-IPL=
 time.



Also is "init q" the same as "kill -HUP 1"



Although Grace's original question seems to have been answered, it got me t=
hinking about a similar problem I have been wanting to solve.





Edward.Davignon@energyeast.com

Lead Analyst - Distributed Systems

Utility Shared Services - IT

Energy East Corporation







-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of Wil=
leat, Todd
Sent: Friday, December 12, 2008 2:36 PM
To: aix-l@Princeton.EDU
Subject: Re: AIX 5.3 "init q" doesnt re-read /etc/inittab



How about this?



nohup /usr/bin/topas -R 2>&1 >/dev/null









Todd A. Willeat, Senior Systems Administrator - Storage

MISD - Infrastructure Support

Sisters of Mercy Health System

3637 South Geyer Road

St. Louis, MO 63127

Phone: (314) 364-3110

Email: Todd.Willeat@Mercy.Net



-----Original Message-----

From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of

Grace Tsai

Sent: Friday, December 12, 2008 1:19 PM

To: aix-l@Princeton.EDU

Subject: Re: AIX 5.3 "init q" doesnt re-read /etc/inittab



Hi, Even,



The change I made in /etc/inittab is



change code:

xmdaily:2:once:/usr/bin/xmwlm -L 2>&1 >/dev/null # Start xmwlm daily

recording



to code:

:xmdaily:2:once:/usr/bin/xmwlm -L 2>&1 >/dev/null # Start xmwlm daily

recording topasrec:2:once:/usr/bin/topas -R 2>&1 >/dev/null # Start

topas recording



I expect run "init q" should start "topas -R", but it doesnt.

I have to reboot the system to get "topas -R" run.

This is just a test system, I need to apply it in our production system

which cant aford to be down even for a short time.

Is there anyway the new added process can run without reboot the

machine?



Thanks.



Grace



F. Even wrote:

> init q won't update the timestamp on the file.  That file is static.

> Your actual edits of the inittab will update the timestamp on the

> file, but just updating init itself won't update the timestamp on that



> file (nor should it).  The actual timestamp on the init process itself



> MAY update....don't know for sure.  I would think not though just due

> to the fact that it's the parent process of the entire system.  I

> could be wrong on that account though.

>

> On Fri, Dec 12, 2008 at 12:21 PM, Grace Tsai <gtsai@bnl.gov> wrote:

>

>> Hi,

>>

>> We are using AIX 5.3 here. I edited file "/etc/inittab" and ran "init



>> q", then I entered "ls -ltu /etc/inittab", the timestamp for this

>> file was not updated.

>> So I dont think "init q" reloads /etc/initab.

>>

>> Any other way to re-examine /etc/inittab without rebooting the

system?

>> Thanks.

>>

>> Grace

>>

>>

This e-mail contains information which (a) may be PROPRIETARY IN NATURE OR

OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only for th=
e

use of the addressee(s) named above. If you are not the addressee, or the

person responsible for delivering this to the addressee(s), you are notifie=
d

that reading, copying or distributing this e-mail is prohibited. If you hav=
e

received this e-mail in error, please contact the sender immediately.

[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:st1="urn:schemas-microsoft-com:office:smarttags" \
xmlns="http://www.w3.org/TR/REC-html40" \
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 77.95pt 1.0in 77.95pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p><b><font size=3 color=navy face=Verdana><span style='font-size:12.0pt;
font-family:Verdana;color:navy;font-weight:bold'><a
href="mailto:Edward.Davignon@energyeast.com"
title="mailto:Edward.Davignon@energyeast.com"><font size=2 color=navy
title="mailto:Edward.Davignon@energyeast.com"><span
title="mailto:Edward.Davignon@energyeast.com"><span style='font-size:10.0pt;
color:navy'>Edward.Davignon@energyeast.com</span></span></font></a><br>
</span></font></b><i><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;font-style:italic'>Lead
Analyst - </span></font></i><i><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>Distributed
Systems Unix<br>
Iberdrola USA Management Corporation<br>
</span></font></i><i><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-style:italic'><ns0:City w:insAuthor="davignoe"
 w:insDate="2010-02-11T12:12:00Z" w:endInsAuthor="davignoe"
 w:endInsDate="2010-02-11T12:12:00Z"><st1:place w:st="on"><st1:City w:st="on"><font
   color=black><span \
style='color:black'>Rochester</span></font></st1:City></ns0:City></st1:place><font \
color=black><span style='color:black'>, <st1:State \
w:st="on">NY</st1:State></span></font></span></font></i><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> IBM AIX
Discussion List [mailto:aix-l@Princeton.EDU] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Weinmann, Robert<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, December 12, 2008
4:16 PM<br>
<b><span style='font-weight:bold'>To:</span></b> aix-l@Princeton.EDU<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: AIX 5.3 &quot;init
q&quot; doesnt re-read /etc/inittab</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>The &quot;correct&quot; way to update
inittab is to use the mkitab, chitab, and rmitab \
commands.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>If an entry in inittab is set to run once,
then rereading inittab will not restart the entry.&nbsp; You need to change
the&nbsp;action field&nbsp;to respawn, save inittab, and then kill the
process.&nbsp; I think init actually rescans inittab continually, so it should
restart automatically.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Bob</span></font><o:p></o:p></p>

</div>

<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Davignon, Edward
[mailto:Edward.Davignon@ENERGYEAST.COM]<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, December 12, 2008
3:40 PM<br>
<b><span style='font-weight:bold'>To:</span></b> aix-l@Princeton.EDU<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: AIX 5.3 &quot;init
q&quot; doesnt re-read /etc/inittab</span></font><o:p></o:p></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>As root,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&nbsp; nohup /usr/bin/topas -R 2&gt;&amp;1 &gt;/dev/null <font
color="#3366ff"><span \
style='color:#3366FF'>&amp;</span></font><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>works nicely for processes like this one that do not have
any environment variable dependencies, but I've been watching this thread
hoping for an answer for how to properly update inittab and start a process
that has environment variable dependencies. &nbsp;&nbsp;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>For example, process schedulers like UC4 should have a
consistent environment setup every time it starts up. &nbsp;It should not
depend on </span></font>/.profile<font face=Arial><span style='font-family:
Arial'> or </span></font>$ENV<font face=Arial><span style='font-family:Arial'>
(usually </span></font>$HOME/.kshrc<font face=Arial><span style='font-family:
Arial'> or </span></font>$HOME/.env<font face=Arial><span style='font-family:
Arial'>) that may override settings in /etc/environment also getty, login, and
sh/ksh set environment variable.&nbsp; For example, I had a COBOL runtime
environment work fine until it was restarted with a missing or unknown TERM
variable.&nbsp; It worked fine because the script was started with </span></font>sudo
-H -b su - -c &quot;/path/to/script start&quot;<font face=Arial><span
style='font-family:Arial'> but failed at reboot when init ran the script
because TERM was not set.&nbsp; It was especially difficult to track down
because it recognized xterm, but not vt220, so restarting it from the command
line had mixed results depending on which user restarted it and what term type
they were using.&nbsp; Another time a script depended on setting LOGNAME.&nbsp;
Although this is bad practice to set LOGNAME, it worked fine when the script
was started from a bash command line, but failed at re-IPL since init used sh
which called /etc/profile which has the command &quot;</span></font>readonly
LOGNAME<font face=Arial><span style='font-family:Arial'>&quot;. &nbsp;I could
also get into issues with ulimits when things are not started consistently by
the same user.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I was wondering what the correct way to add something to
inittab and/or SRC is. &nbsp;Is it appropriate to have SRC start a wrapper
script?&nbsp; Or is there additional overhead involved in programming something
to be under SRC control?&nbsp; I'm looking at these tools because they always
start processes the same way and do not depend on the current user's
environment which is often slightly different between test and production
machines.&nbsp; I'm trying to minimize surprises when promoting code from dev,
test, and prod and also at re-IPL time.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Also is &quot;</span></font>init q<font face=Arial><span
style='font-family:Arial'>&quot; the same as &quot;</span></font>kill -HUP 1<font
face=Arial><span style='font-family:Arial'>&quot;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Although Grace's original question seems to have been
answered, it got me thinking about a similar problem I have been wanting to
solve.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Edward.Davignon@energyeast.com<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Lead Analyst - Distributed Systems<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Utility Shared Services - IT<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Energy East Corporation<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>-----Original Message-----<br>
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Willeat, Todd<br>
Sent: Friday, December 12, 2008 2:36 PM<br>
To: aix-l@Princeton.EDU<br>
Subject: Re: AIX 5.3 &quot;init q&quot; doesnt re-read \
/etc/inittab<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>How about this?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>nohup /usr/bin/topas -R 2&gt;&amp;1 &gt;/dev/null \
<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Todd A. Willeat, Senior Systems Administrator - \
Storage<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>MISD - Infrastructure Support<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Sisters of Mercy Health System<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>3637 South Geyer Road<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>St. Louis, MO 63127<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Phone: (314) 364-3110<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Email: Todd.Willeat@Mercy.Net<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>-----Original Message-----<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf \
Of<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Grace Tsai<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Sent: Friday, December 12, 2008 1:19 PM<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>To: aix-l@Princeton.EDU<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Subject: Re: AIX 5.3 &quot;init q&quot; doesnt re-read \
/etc/inittab<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Hi, Even,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>The change I made in /etc/inittab is<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>change code:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>xmdaily:2:once:/usr/bin/xmwlm -L 2&gt;&amp;1 &gt;/dev/null # Start
xmwlm daily<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>recording<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>to code:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>:xmdaily:2:once:/usr/bin/xmwlm -L 2&gt;&amp;1 &gt;/dev/null # Start
xmwlm daily<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>recording topasrec:2:once:/usr/bin/topas -R 2&gt;&amp;1 &gt;/dev/null #
Start<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>topas recording<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>I expect run &quot;init q&quot; should start &quot;topas -R&quot;, but
it doesnt.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>I have to reboot the system to get &quot;topas -R&quot; \
run.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>This is just a test system, I need to apply it in our production \
system<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>which cant aford to be down even for a short \
time.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Is there anyway the new added process can run without reboot \
the<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>machine?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Thanks.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Grace<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>F. Even wrote:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; init q won't update the timestamp on the file.&nbsp; That file is
static.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; Your actual edits of the inittab will update the timestamp on the \
<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; file, but just updating init itself won't update the timestamp on
that<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; file (nor should it).&nbsp; The actual timestamp on the init
process itself<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; MAY update....don't know for sure.&nbsp; I would think not though
just due <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; to the fact that it's the parent process of the entire
system.&nbsp; I <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; could be wrong on that account though.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;<o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; On Fri, Dec 12, 2008 at 12:21 PM, Grace Tsai &lt;gtsai@bnl.gov&gt;
wrote:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&nbsp;&nbsp; <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt; Hi,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt;<o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt; We are using AIX 5.3 here. I edited file
&quot;/etc/inittab&quot; and ran &quot;init<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt; q&quot;, then I entered &quot;ls -ltu /etc/inittab&quot;, the
timestamp for this <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt; file was not updated.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt; So I dont think &quot;init q&quot; reloads \
/etc/initab.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt;<o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt; Any other way to re-examine /etc/inittab without rebooting \
the<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>system?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt; Thanks.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt;<o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt; Grace<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt;<o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>This e-mail contains information which (a) may be PROPRIETARY IN NATURE
OR<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only
for the<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>use of the addressee(s) named above. If you are not the addressee, or
the<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>person responsible for delivering this to the addressee(s), you are
notified<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>that reading, copying or distributing this e-mail is prohibited. If you
have<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>received this e-mail in error, please contact the sender \
immediately.<o:p></o:p></span></font></p>

</blockquote>

</div>

</body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic