<?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 how add scritps in startup in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-add-scritps-in-startup/m-p/5322983#M53181</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;how can i add the my scripts in startup. explain the steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abu&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2011 09:14:42 GMT</pubDate>
    <dc:creator>Abubakkar</dc:creator>
    <dc:date>2011-09-06T09:14:42Z</dc:date>
    <item>
      <title>how add scritps in startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-add-scritps-in-startup/m-p/5322983#M53181</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;how can i add the my scripts in startup. explain the steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abu&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 09:14:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-add-scritps-in-startup/m-p/5322983#M53181</guid>
      <dc:creator>Abubakkar</dc:creator>
      <dc:date>2011-09-06T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: how add scritps in startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-add-scritps-in-startup/m-p/5323079#M53182</link>
      <description>&lt;P&gt;The exact requirements vary in different Linux distributions/versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, your scripts should follow the standards of the Linux Standards Base:&lt;/P&gt;&lt;P&gt;&lt;A href="http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/tocsysinit.html" target="_blank"&gt;http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/tocsysinit.html&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;(see chapters 20.2 - 20.8 of the above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current version of LSB also has a standard installation and removal process for startup scripts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in RHEL, you should find instructions and an example script in /usr/share/doc/initscripts-&amp;lt;version&amp;gt;/sysvinitfiles.&lt;/P&gt;&lt;P&gt;(Looks like this has been true in older pre-Enterprise RedHat versions too, perhaps back to RHL 7.0, although the &amp;lt;version&amp;gt; part in the pathname will obviously be different in each version.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your system has the "chkconfig" command, you should read "man chkconfig": if your script complies with the requirements listed there, you can add your startup script by just copying it to /etc/init.d, and then running "chkconfig --add &amp;lt;name_of_script&amp;gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many newer Linux distributions (including RHEL 6) use a new "dependency-based" boot scheme, in which each script must declare the system services it depends on. This enables the system to boot up faster. As a result, the comment scheme described in this part of LSB is now a requirement, instead of just a recommendation:&lt;/P&gt;&lt;P&gt;&lt;A href="http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html" target="_blank"&gt;http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;Also, your script should create an empty file in /var/lock/subsys/﻿ if it starts up something that must be stopped at system shutdown. The name of the file should match the name of your script. (If this file does not exist, the stop function of your script won't be run, because the system assumes the service has already been stopped.)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 10:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-add-scritps-in-startup/m-p/5323079#M53182</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-09-06T10:53:52Z</dc:date>
    </item>
  </channel>
</rss>

