<?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: Run script when system reboot in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049653#M6185</link>
    <description>Thx reply,&lt;BR /&gt;&lt;BR /&gt;how about /etc/inittab ? is it also run the script in the file when reboot ? thx</description>
    <pubDate>Fri, 15 Aug 2003 08:36:32 GMT</pubDate>
    <dc:creator>juno2</dc:creator>
    <dc:date>2003-08-15T08:36:32Z</dc:date>
    <item>
      <title>Run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049651#M6183</link>
      <description>I want to run some scripts when everytime the linux server reboot, when file should I modify ?  I use RH 8 . thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Aug 2003 08:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049651#M6183</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-08-15T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049652#M6184</link>
      <description>If you mean __after__ the system boots, look into /etc/rc.local or see chkconfig for editing start and stop for system services.&lt;BR /&gt;&lt;BR /&gt;In Rh9.0 there's a gui tool called redhat-config-services, see if you have that.&lt;BR /&gt;&lt;BR /&gt;All the service stubs are located in /etc/rc.d/init.d.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Cristi</description>
      <pubDate>Fri, 15 Aug 2003 08:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049652#M6184</guid>
      <dc:creator>Cristian Draghici_1</dc:creator>
      <dc:date>2003-08-15T08:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049653#M6185</link>
      <description>Thx reply,&lt;BR /&gt;&lt;BR /&gt;how about /etc/inittab ? is it also run the script in the file when reboot ? thx</description>
      <pubDate>Fri, 15 Aug 2003 08:36:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049653#M6185</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-08-15T08:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049654#M6186</link>
      <description>the inittab file isn't the right place for scripts.&lt;BR /&gt;use /etc/rc.local</description>
      <pubDate>Fri, 15 Aug 2003 09:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049654#M6186</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2003-08-15T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049655#M6187</link>
      <description>Inittab is somewhat a lower level than what you're looking for.&lt;BR /&gt;&lt;BR /&gt;You can use inittab to configure the runlevel in which your system runs (e.g. 5 for graphical, 3 for non-graphical).&lt;BR /&gt;&lt;BR /&gt;See 'man inittab' for the complete description.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Cristi</description>
      <pubDate>Fri, 15 Aug 2003 10:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049655#M6187</guid>
      <dc:creator>Cristian Draghici_1</dc:creator>
      <dc:date>2003-08-15T10:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049656#M6188</link>
      <description>Could you be more specific, the reason I am asking is because you may want to stat someting very early in the system startup&lt;BR /&gt;&lt;BR /&gt;like during boot ... before some services are started ... or after in short do you require that some of the enviroment be there or not ?&lt;BR /&gt;&lt;BR /&gt;what you want to execute pretty much determine what file you should modify.&lt;BR /&gt;&lt;BR /&gt;Jean-Pierre</description>
      <pubDate>Sat, 16 Aug 2003 05:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049656#M6188</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-08-16T05:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049657#M6189</link>
      <description>The following applies to all the unix systems I've ever touched, there are variations, but they are not significant.&lt;BR /&gt;&lt;BR /&gt;Linux&lt;BR /&gt;&lt;BR /&gt;/etc/init.d&lt;BR /&gt;&lt;BR /&gt;The location of all startup scripts&lt;BR /&gt;&lt;BR /&gt;/etc/rc#.d&lt;BR /&gt;&lt;BR /&gt;There are usually 6 of these numbered zero through five, assumming your system(prior posts) is a run level 5 system.&lt;BR /&gt;&lt;BR /&gt;What you do to get things to run at startup is place softlinks in these directories pointing at scripts in /etc/init.d&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;I have a script that starts the bagel service.&lt;BR /&gt;&lt;BR /&gt;/etc/init.d/bagel&lt;BR /&gt;&lt;BR /&gt;This script follows a standard format requiring start or a stop or a restart as the first command line parameter.&lt;BR /&gt;&lt;BR /&gt;To get it to start at run level five:&lt;BR /&gt;&lt;BR /&gt;ln -s /etc/init.d/bagel /etc/rc5.d/S85bagel&lt;BR /&gt;&lt;BR /&gt;the capital S is critical, everthing else is documentation&lt;BR /&gt;&lt;BR /&gt;If you start it you want to stop it usually one run level below where you start it.&lt;BR /&gt;&lt;BR /&gt;ln -s /etc/init.d/bagel /etc/rc4.d/K85bagel&lt;BR /&gt;&lt;BR /&gt;S for start&lt;BR /&gt;&lt;BR /&gt;K for kill&lt;BR /&gt;&lt;BR /&gt;all you need now is some real scripts to run.&lt;BR /&gt;&lt;BR /&gt;Be careful what you run, you system will not be fully operational until its done.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 18 Aug 2003 02:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-script-when-system-reboot/m-p/3049657#M6189</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-08-18T02:50:57Z</dc:date>
    </item>
  </channel>
</rss>

