<?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: rc script kill_proc. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780619#M263176</link>
    <description>Hi Carlos,&lt;BR /&gt;&lt;BR /&gt;     You are right, in way that it is done in the stop section. If you had noticed in pre 11.00 versions there weren't any functions defined in the rc scripts. Now its become more modularized by using "functions". If i wouldn't have functions I had be clustering all the last activies in the stop section, namely kill the procs and cleaning up files etc. By modularizing, I can write a function namely "kill_procs" and "clean_files" etc,etc and that way I can summon the funtion whenever i require. There by it even gives a flexibility of repeating the sequence of commands using one liners if I were to embed a conditional statement in "stop" section, instead of repeating all the lines again and again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
    <pubDate>Tue, 02 May 2006 03:27:14 GMT</pubDate>
    <dc:creator>Senthil Kumar .A_1</dc:creator>
    <dc:date>2006-05-02T03:27:14Z</dc:date>
    <item>
      <title>rc script kill_proc.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780614#M263171</link>
      <description>Hi Gurus.&lt;BR /&gt;&lt;BR /&gt;When "kill_proc ()" part of rc script is used?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Tue, 02 May 2006 03:09:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780614#M263171</guid>
      <dc:creator>Carlos_172</dc:creator>
      <dc:date>2006-05-02T03:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: rc script kill_proc.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780615#M263172</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Its used to shut down the processes/daemons created by the start section of the script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 02 May 2006 03:15:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780615#M263172</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-05-02T03:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: rc script kill_proc.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780616#M263173</link>
      <description>IsnÂ´t it done by stop section?</description>
      <pubDate>Tue, 02 May 2006 03:19:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780616#M263173</guid>
      <dc:creator>Carlos_172</dc:creator>
      <dc:date>2006-05-02T03:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: rc script kill_proc.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780617#M263174</link>
      <description>Carlos,&lt;BR /&gt;&lt;BR /&gt;Basically you have a single script to start and stop a particular process/application when you want to start/stop that process as part of system startup/shutdown. The scripts are kept in the /sbin/rcx.d where x is the run level.&lt;BR /&gt;In the script wou have a start section and a stop section - The parameter start or stop is passed to this script depending on whether you are starting up or shutting down - by the rc script. and depending on this parameter the corresponding section/function is executed.&lt;BR /&gt;&lt;BR /&gt;Hope this clarifies,&lt;BR /&gt;Ninad</description>
      <pubDate>Tue, 02 May 2006 03:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780617#M263174</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-02T03:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: rc script kill_proc.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780618#M263175</link>
      <description>Ok. I understand start and stop paramenters. I just donÂ´t understand when kill_proc is used ...&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Tue, 02 May 2006 03:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780618#M263175</guid>
      <dc:creator>Carlos_172</dc:creator>
      <dc:date>2006-05-02T03:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: rc script kill_proc.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780619#M263176</link>
      <description>Hi Carlos,&lt;BR /&gt;&lt;BR /&gt;     You are right, in way that it is done in the stop section. If you had noticed in pre 11.00 versions there weren't any functions defined in the rc scripts. Now its become more modularized by using "functions". If i wouldn't have functions I had be clustering all the last activies in the stop section, namely kill the procs and cleaning up files etc. By modularizing, I can write a function namely "kill_procs" and "clean_files" etc,etc and that way I can summon the funtion whenever i require. There by it even gives a flexibility of repeating the sequence of commands using one liners if I were to embed a conditional statement in "stop" section, instead of repeating all the lines again and again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Tue, 02 May 2006 03:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780619#M263176</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-05-02T03:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: rc script kill_proc.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780620#M263177</link>
      <description>one more thing to add,&lt;BR /&gt;&lt;BR /&gt;  stop, start are sections to be executed in "case" statement.&lt;BR /&gt;&lt;BR /&gt;  whereas kill_proc is just a function. something like aliasing a set of statements in shell script. It does not have any baring to summun the rc script itself, may you are confused with the fact that ,when will i do the following...&lt;BR /&gt;&lt;BR /&gt;     /sbin/init.d/cron kill_proc&lt;BR /&gt;&lt;BR /&gt;  actually the only parameter that can be validly passed are..&lt;BR /&gt;&lt;BR /&gt;     stop,start,stop_mesg and start_mesg&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Tue, 02 May 2006 03:31:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780620#M263177</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-05-02T03:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: rc script kill_proc.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780621#M263178</link>
      <description>ok. Then, If I donÂ´t call this function anywhere in stop and start section, it would be mandatory, isnÂ´t it?</description>
      <pubDate>Tue, 02 May 2006 04:58:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-kill-proc/m-p/3780621#M263178</guid>
      <dc:creator>Carlos_172</dc:creator>
      <dc:date>2006-05-02T04:58:31Z</dc:date>
    </item>
  </channel>
</rss>

