<?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: start service when system startup in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865549#M3077</link>
    <description>woops! this is linux.. in this case, it'd help to know your flavor!!  You will need to modify your rc.local</description>
    <pubDate>Tue, 17 Dec 2002 11:35:33 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2002-12-17T11:35:33Z</dc:date>
    <item>
      <title>start service when system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865546#M3074</link>
      <description>If i want to start some services eg, start db , deamon etc. when the system startup , what can i do? thx.</description>
      <pubDate>Tue, 17 Dec 2002 10:50:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865546#M3074</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2002-12-17T10:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: start service when system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865547#M3075</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Edit /etc/rc.d/rc.local file and put your commands there . reboot the server now your commands will run automatically.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Tue, 17 Dec 2002 11:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865547#M3075</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-12-17T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: start service when system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865548#M3076</link>
      <description>see /usr/share/doc/start_up.txt for full instructions on how to creqte start up an control scripts.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 17 Dec 2002 11:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865548#M3076</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-12-17T11:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: start service when system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865549#M3077</link>
      <description>woops! this is linux.. in this case, it'd help to know your flavor!!  You will need to modify your rc.local</description>
      <pubDate>Tue, 17 Dec 2002 11:35:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865549#M3077</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-12-17T11:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: start service when system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865550#M3078</link>
      <description>But i found some of system is rc3.d , what is the difference? thx.</description>
      <pubDate>Wed, 18 Dec 2002 01:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865550#M3078</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2002-12-18T01:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: start service when system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865551#M3079</link>
      <description>As the other two who replied said, it would make it easier if we knew what distribution of Linux you are using, as to giving you credibal advice.&lt;BR /&gt;&lt;BR /&gt;As it stands, here's a brief over-view.&lt;BR /&gt;&lt;BR /&gt;When *nix machine boots up, it uses the process 'init' to say what should be done and in what order.  If you have a look through the configuration file for init (/etc/inittab), there will be a single line starting with 'si', and then multiple lines that start with 'l' followed by the numbers 0 through 6.  These are the different run-levels of a machine.&lt;BR /&gt;&lt;BR /&gt;Quick explination of what the 7 different widely used run-levels:&lt;BR /&gt;&lt;BR /&gt;0 : Designed to 'halt' the machine&lt;BR /&gt;1 : usually a Single User mode&lt;BR /&gt;2 : A form of Multi-User.  Use differes depending on OS and Distribution.&lt;BR /&gt;3 : Another multi-user.  See above.&lt;BR /&gt;4 : Not usually used at all.&lt;BR /&gt;5 : Most linux machines use this for X, otherwise not usually used.&lt;BR /&gt;6 : Shutdown the machine and restart it.  A 'reboot' if you will.&lt;BR /&gt;&lt;BR /&gt;Depending on what Unix/Linux you're using change the way things get started and stopped when changing run levels.  For the sake of this thread, I'll keep it short.&lt;BR /&gt;&lt;BR /&gt;Simple put, these levels of 'init' call a program (or shell script) checks a given directory structure (on most modern Linux boxes, it's /etc/rc.d/rc&lt;LEVEL&gt;.d/) and runs start up and shut down scripts.&lt;BR /&gt;&lt;BR /&gt;In RedHat, '/etc/rc.d/rc' is the shell script that does most of the work.&lt;BR /&gt;&lt;BR /&gt;When booting up to Run Level 3 (standard Multi-User), it walks through the S and K files in /etc/rc.d/rc3.d/ and starts any that begin with an 'S', with the single argument 'start'.  The last file (sorted alphabetically) in this structure is usually 'S99local'.&lt;BR /&gt;&lt;BR /&gt;When shutting a machine down, either /etc/rc.d/rc0.d or /etc/rc.d/rc6.d gets parsed, and all files starting with a 'K' get executed, with the single argument of 'stop'.&lt;BR /&gt;&lt;BR /&gt;Now.  If you want to put your own scripts in this structure to start a service when the system starts, you can.   Just call it 'S&lt;NUMBER&gt;blah'.  This will get executed in order (detmined by it's alphabetical order, use 'echo S*' to test) when the machine hits that run level.&lt;BR /&gt;&lt;BR /&gt;The other option is to use /etc/rc.d/rc.local.  This gets called when the 'S99local' routine gets executed in the rc&lt;LEVEL&gt;.d structure (infact, it's just a symbolic link back to it!)&lt;BR /&gt;&lt;BR /&gt;I hope this helps clarify things a little for you.&lt;BR /&gt;&lt;BR /&gt;(NOTE: This is based on the behaviour of RH Linux.  Other distributions might behave slightly differently, and also some Unicies behave slightly differently.)&lt;/LEVEL&gt;&lt;/NUMBER&gt;&lt;/LEVEL&gt;</description>
      <pubDate>Wed, 18 Dec 2002 04:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-service-when-system-startup/m-p/2865551#M3079</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-12-18T04:46:37Z</dc:date>
    </item>
  </channel>
</rss>

