<?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: which is the Startup file??? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002650#M47752</link>
    <description>Start up file according to ur profile is.&lt;BR /&gt;.bash_profile  its a hidden fine at ur home directory..it runs automatically when u login.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Tue, 12 Sep 2006 03:29:44 GMT</pubDate>
    <dc:creator>AjayYadav</dc:creator>
    <dc:date>2006-09-12T03:29:44Z</dc:date>
    <item>
      <title>which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002648#M47750</link>
      <description>Hi,&lt;BR /&gt;I need to make the entries in startup file of RHEL AS4 for two commands, &lt;BR /&gt;&lt;BR /&gt;so please let me know in which file, i need to make the entries?&lt;BR /&gt;&lt;BR /&gt;i have done:&lt;BR /&gt;&lt;BR /&gt;#cd /home/praveen&lt;BR /&gt;#vi praveen_start.sh&lt;BR /&gt;cd /opt/cpu_mem&lt;BR /&gt;./alert.sh&lt;BR /&gt;:wq!&lt;BR /&gt;#chmod 777 praveen_start.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#cd /etc/rc5.d&lt;BR /&gt;#ln -s /home/praveen/praveen_start.sh praveen&lt;BR /&gt;#chmod 777 praveen&lt;BR /&gt;&lt;BR /&gt;then i tried with reboot, but these file could not be run. it didn't work&lt;BR /&gt;&lt;BR /&gt;Please let me know in which file i need to make the entries.&lt;BR /&gt;&lt;BR /&gt;OS Run level is 5, and this entry should be for all the users (local, NIS &amp;amp; root)&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 02:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002648#M47750</guid>
      <dc:creator>praveen..</dc:creator>
      <dc:date>2006-09-12T02:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002649#M47751</link>
      <description>it depends when you want to run it... probably after you login, I guess.&lt;BR /&gt;So it again depends what is your shell.&lt;BR /&gt;I recomend bash.&lt;BR /&gt;&lt;BR /&gt;so make a file .bash_login&lt;BR /&gt;make it executeble, it's just bash script, which sais what needs to be done just after you login.&lt;BR /&gt;&lt;BR /&gt;It should work also for other shells&lt;BR /&gt;.ksh_login&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;if you want to start your script with OS, you need to add this /etc/rc.d with exec rights ofcourse&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 03:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002649#M47751</guid>
      <dc:creator>g33k</dc:creator>
      <dc:date>2006-09-12T03:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002650#M47752</link>
      <description>Start up file according to ur profile is.&lt;BR /&gt;.bash_profile  its a hidden fine at ur home directory..it runs automatically when u login.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 12 Sep 2006 03:29:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002650#M47752</guid>
      <dc:creator>AjayYadav</dc:creator>
      <dc:date>2006-09-12T03:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002651#M47753</link>
      <description>I dont want to login on the system,&lt;BR /&gt;&lt;BR /&gt;I want this to start with OS.&lt;BR /&gt;&lt;BR /&gt;please suggest</description>
      <pubDate>Tue, 12 Sep 2006 04:01:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002651#M47753</guid>
      <dc:creator>praveen..</dc:creator>
      <dc:date>2006-09-12T04:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002652#M47754</link>
      <description>did you try your file from command line to see if it works first?&lt;BR /&gt;It looks like it's missing the "magic line":&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash &lt;BR /&gt;&lt;BR /&gt;btw, you can replace 2 commands with 1:&lt;BR /&gt;/opt/cpu_mem/alert.sh</description>
      <pubDate>Tue, 12 Sep 2006 04:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002652#M47754</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-09-12T04:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002653#M47755</link>
      <description>Shalom praveen,&lt;BR /&gt;&lt;BR /&gt;#cd /etc/rc5.d&lt;BR /&gt;#ln -s /home/praveen/praveen_start.sh praveen&lt;BR /&gt;#chmod 777 praveen&lt;BR /&gt;&lt;BR /&gt;The startup location is non-standard, e.g. though it will probably work if the praveen_start.sh script works some future version of SELINUX or security tool may stop it.&lt;BR /&gt;&lt;BR /&gt;The ln -s command will feed the script a start command only if the soft link starts with a captial S, otherwise it will be ignored at run level 5 where its being created.&lt;BR /&gt;&lt;BR /&gt;Suggestion:&lt;BR /&gt;#cd /etc/rc5.d&lt;BR /&gt;#ln -s /home/praveen/praveen_start.sh S91praveen&lt;BR /&gt;#chmod 777 S91praveen&lt;BR /&gt;&lt;BR /&gt;Now at least it will execute at start time.&lt;BR /&gt;&lt;BR /&gt;Better:&lt;BR /&gt;&lt;BR /&gt;#cd /etc/rc5.d&lt;BR /&gt;#ln -s /etc/init.d/praveen_start.sh S91praveen&lt;BR /&gt;#chmod 777 S91praveen&lt;BR /&gt;&lt;BR /&gt;Relocate the startup script to a standard location.&lt;BR /&gt;&lt;BR /&gt;Last, The script should be able to accept a K (stop) link and able to be shut down the same way its started. e.g. where is the shutdown soft link?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 12 Sep 2006 07:11:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002653#M47755</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-09-12T07:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002654#M47756</link>
      <description>You can add your commands to /etc/rc.local.&lt;BR /&gt;It will get executed after all other startup actions.&lt;BR /&gt;&lt;BR /&gt;If you want to put something to /etc/rc5.d, you must make the script's name start with either capital "S" (for Start) or with capital K (for Kill). When starting up to runlevel 5, the server runs all scripts in /etc/rc5.d starting with the "S" in POSIX standard alphanumberic sorting order. Each "S" script is run with command line argument "start". So, if your script is named /etc/rc5.d/S99praveen, the system will execute the command:&lt;BR /&gt;/etc/rc5.d/S99praveen start&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 08:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002654#M47756</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2006-09-12T08:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002655#M47757</link>
      <description>Normally you should put your stoff in /etc/rc.local&lt;BR /&gt;If you want to put in /etc/init.d/, you'd better to write the script following the examples in the directory.</description>
      <pubDate>Wed, 13 Sep 2006 11:05:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002655#M47757</guid>
      <dc:creator>George Liu_4</dc:creator>
      <dc:date>2006-09-13T11:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: which is the Startup file???</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002656#M47758</link>
      <description>#cd /etc/rc5.d&lt;BR /&gt;#ln -s /etc/init.d/praveen_start.sh S91praveen&lt;BR /&gt;#chmod 777 S91praveen&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 20 Sep 2006 05:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-is-the-startup-file/m-p/5002656#M47758</guid>
      <dc:creator>praveen..</dc:creator>
      <dc:date>2006-09-20T05:53:25Z</dc:date>
    </item>
  </channel>
</rss>

