<?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: read boot script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791829#M77745</link>
    <description>Hello &lt;BR /&gt;&lt;BR /&gt;If you want to create RedHat style boot script, you must add following lines, then you will be able to use chkconfig.&lt;BR /&gt;&lt;BR /&gt;# chkconfig : 235 10 90&lt;BR /&gt;# description: description of this script&lt;BR /&gt;&lt;BR /&gt;235 is runlevel that the script starts.&lt;BR /&gt;&lt;BR /&gt;10 90 is a priority that the script run &amp;amp; stop.&lt;BR /&gt;&lt;BR /&gt;For the detail, man chkconfig will help you.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Aug 2002 16:04:39 GMT</pubDate>
    <dc:creator>I_M</dc:creator>
    <dc:date>2002-08-22T16:04:39Z</dc:date>
    <item>
      <title>read boot script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791827#M77743</link>
      <description>Hi again,&lt;BR /&gt;another small problem.&lt;BR /&gt;I have a script that i want to be read while system is booting. I will attach it.&lt;BR /&gt;What i'm doing is to put that script under /etc/init.d and then create a link from /etc/rc.d/rc2.d with name S99setKrnlPar that points to the script under /etc/init.d.&lt;BR /&gt;Unfortunately this script after boot isn't read.&lt;BR /&gt;What i'm missing?&lt;BR /&gt;Thanks&lt;BR /&gt;Tarek</description>
      <pubDate>Thu, 22 Aug 2002 13:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791827#M77743</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-08-22T13:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: read boot script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791828#M77744</link>
      <description>Can you manually run the script?&lt;BR /&gt;&lt;BR /&gt;/etc/init.d/setKrnlPar start&lt;BR /&gt;&lt;BR /&gt;Are you running in runlevel 2 by default?&lt;BR /&gt;&lt;BR /&gt;grep initdefault /etc/inittab&lt;BR /&gt;&lt;BR /&gt;id:2:initdefault:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Aug 2002 15:38:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791828#M77744</guid>
      <dc:creator>Craig Kelley</dc:creator>
      <dc:date>2002-08-22T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: read boot script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791829#M77745</link>
      <description>Hello &lt;BR /&gt;&lt;BR /&gt;If you want to create RedHat style boot script, you must add following lines, then you will be able to use chkconfig.&lt;BR /&gt;&lt;BR /&gt;# chkconfig : 235 10 90&lt;BR /&gt;# description: description of this script&lt;BR /&gt;&lt;BR /&gt;235 is runlevel that the script starts.&lt;BR /&gt;&lt;BR /&gt;10 90 is a priority that the script run &amp;amp; stop.&lt;BR /&gt;&lt;BR /&gt;For the detail, man chkconfig will help you.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Aug 2002 16:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791829#M77745</guid>
      <dc:creator>I_M</dc:creator>
      <dc:date>2002-08-22T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: read boot script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791830#M77746</link>
      <description>I'm booting in init mode 3.&lt;BR /&gt;I can run the script manually /etc/init.d/setKrnlpar and it works.&lt;BR /&gt;Now i will try with chconfig and let you know.&lt;BR /&gt;Thanks again&lt;BR /&gt;Tarek</description>
      <pubDate>Fri, 23 Aug 2002 05:58:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791830#M77746</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-08-23T05:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: read boot script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791831#M77747</link>
      <description>I added these to lines in my script:&lt;BR /&gt;# chkconfig : 235 10 90&lt;BR /&gt;# description: setKrnlPar&lt;BR /&gt;Then:&lt;BR /&gt;chkconfig --add setKrnlPar&lt;BR /&gt;service setKrnlPar does not support chkconfig&lt;BR /&gt;But if i issue:&lt;BR /&gt;chkconfig setKrnlPar start the script is read&lt;BR /&gt;However at boot time no. I don't want that this script should be a service (also because start &amp;amp; stop doesn't have sense here, they aren't used).&lt;BR /&gt;I only want that at boot time, this file is read and executed.</description>
      <pubDate>Wed, 13 Nov 2002 11:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791831#M77747</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-11-13T11:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: read boot script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791832#M77748</link>
      <description>Use another script in init.d as a template.  It is OK to have stop do nothing.&lt;BR /&gt;&lt;BR /&gt;The script should be executable.&lt;BR /&gt;The first line should be indicate the shell to run.&lt;BR /&gt;Try '#!/bin/sh -x' to get a debug trace.&lt;BR /&gt;Don't count on much of a path or environment.&lt;BR /&gt;If you are strarting in run level 3, link in rc3.d not rc2.d.  Linux tends not to walk the rc*.d tree during startup.  Likely ony rc3.d is being run.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Nov 2002 16:37:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791832#M77748</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2002-11-13T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: read boot script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791833#M77749</link>
      <description>Tarek,&lt;BR /&gt;&lt;BR /&gt;Unless you want it to start up at a certain point in the boot process, why wouldn't you just execute the script from /etc/rc.d/rc.local that is run last at boot I believe.&lt;BR /&gt;&lt;BR /&gt;Just a thought. Hope it helps.&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 13 Nov 2002 18:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/read-boot-script/m-p/2791833#M77749</guid>
      <dc:creator>Jeffrey S. Sims</dc:creator>
      <dc:date>2002-11-13T18:23:11Z</dc:date>
    </item>
  </channel>
</rss>

