<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Serv Guard calling startup scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835610#M711352</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Basically, yes.  The only way SG will monitor an application/PID, is if you tell it to.  The way you do that is defining the monitor in the package config and control scripts as a Service Process.&lt;BR /&gt;&lt;BR /&gt;Hope this answers you question&lt;BR /&gt;&lt;BR /&gt;Chris</description>
    <pubDate>Wed, 30 Oct 2002 15:52:30 GMT</pubDate>
    <dc:creator>Christopher McCray_1</dc:creator>
    <dc:date>2002-10-30T15:52:30Z</dc:date>
    <item>
      <title>Serv Guard calling startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835606#M711348</link>
      <description>Hey Gang, &lt;BR /&gt;&lt;BR /&gt;Quick question for verification.  I understand that SG, by standard configuration, is used to start a process using the process's command entered into the configuration file, and then monitor that process's PID for failure.  In the event the PID it grabbed when starting the process goes away, the process is restarted.&lt;BR /&gt;&lt;BR /&gt;I also understand, that if you use the configuration file and have SG call a startup script (instead of the command directly), it will capture the PID of the SCRIPT it called, and get into a loop when the script exits (as the PID goes away) and attempt to call the script again.&lt;BR /&gt;&lt;BR /&gt;My solution to this NORMALLY would be to have SG call a startup script but NOT monitor the PID of anything (just monitor for machine failure via heartbeat.)  HOWEVER...is it possible to have SG call a STARTUP SCRIPT and then monitor the processes CALLED BY THE SCRIPT (instead of the scriptG??s PID directly?)  And, if it can, can it then be configured to run the STOP SCRIPT (killing all associated processes) and call the startup script again in the event the actuall process's fail?&lt;BR /&gt;&lt;BR /&gt;Thanks for the help!!&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Oct 2002 22:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835606#M711348</guid>
      <dc:creator>Mike_316</dc:creator>
      <dc:date>2002-10-29T22:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Serv Guard calling startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835607#M711349</link>
      <description>Hmm, slightly confused, But I believe what you are asking this:&lt;BR /&gt;If I have a Service Script that is used by the package to monitor vital processes/resource, Can I montor the PID's of the processes started from inside this script rather than hte script PID itself?&lt;BR /&gt;&lt;BR /&gt;The answer is no.&lt;BR /&gt;The Service Monitor logs the PID of the Service Process command/script and monitors that. The script internally will be doing things like checking for a PID, or that a file exists, and while it does, then all is well. If the file or PID disappears, then you could possibly script in the logic to restart the missing process/create the file, but there are some caveats to be mindful of in doing this. Essentially, if the PID dissappears, or the file goes missing (or whatever) then the script does an exit. Upon this process exiting, the Service Monitor then sees the service has died. If a restart is configured, it will restart that service process, but if the required resources are still missing, it will die again. The Service Monitor then tells the Package Manager that there has been a failure, and proceeds to halt the package, and if it can restart the package on an alternate node.&lt;BR /&gt;&lt;BR /&gt;For more info you may want to read the Managing MC/ServiceGuard manual at:&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/ha" target="_blank"&gt;http://docs.hp.com/hpux/ha&lt;/A&gt;</description>
      <pubDate>Wed, 30 Oct 2002 09:08:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835607#M711349</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2002-10-30T09:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Serv Guard calling startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835608#M711350</link>
      <description>If you used the exec command in your startup script to call your application then that process would replace your startup script and execute as the same PID. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Wed, 30 Oct 2002 09:15:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835608#M711350</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-10-30T09:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Serv Guard calling startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835609#M711351</link>
      <description>GREAT ANSWERS!  That pretty much answered the question, and is what I thought (although I didn't know about using exec to replace the PID...that WILL be helpful.)&lt;BR /&gt;&lt;BR /&gt;So the only question I have left (mostly for verification to make sure I understand the manual right) is ...it IS possible to configure SG to start a process, and NOT monitor it at all ...correct?  In other words, configure it to run process/script "X", and then ignore the PID (or monitor the PID, but do nothing if it dissappears.)&lt;BR /&gt;&lt;BR /&gt;I hope that makes sense, and thanks again for all the help!&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Oct 2002 15:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835609#M711351</guid>
      <dc:creator>Mike_316</dc:creator>
      <dc:date>2002-10-30T15:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Serv Guard calling startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835610#M711352</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Basically, yes.  The only way SG will monitor an application/PID, is if you tell it to.  The way you do that is defining the monitor in the package config and control scripts as a Service Process.&lt;BR /&gt;&lt;BR /&gt;Hope this answers you question&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 30 Oct 2002 15:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835610#M711352</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-10-30T15:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Serv Guard calling startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835611#M711353</link>
      <description>It does!  Thanks again for all the help!&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Wed, 30 Oct 2002 16:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serv-guard-calling-startup-scripts/m-p/2835611#M711353</guid>
      <dc:creator>Mike_316</dc:creator>
      <dc:date>2002-10-30T16:00:57Z</dc:date>
    </item>
  </channel>
</rss>

