title: start shell script at boot time in linux redhat
body: <p>I want to run one shell script during booting of my linux server having redhat.</p>
  
  <p>Below are the steps I followed to achieve this</p>
  
  <p>1) I have created script /home/user/script/test.sh</p>
  
  <pre><code>    #!/bin/bash
      echo "xyz" &gt;&gt; output
  </code></pre>
  
  <p>2) I have made script file as executable using below command </p>
  
  <pre><code>chmod +x /home/user/script/test.sh
  </code></pre>
  
  <p>3) I have created put <code>test.sh</code> file inside <code>/etc/init.d</code> directory </p>
  
  <p>4) I have made soft link for using below command </p>
  
  <pre><code> ls -s /etc/init.d/test.sh /etc/rc.d/S15test.sh
  </code></pre>
  
  <p>5) reboot the server </p>
  
  <p>Another things I have tried is put below line inside <code>/etc/rc.local</code> file</p>
  
  <pre><code>/bin/sh /home/user/script/test.sh
  </code></pre>
  
  <p>But still I am not able to execute code written inside <code>test.sh</code> file.</p>