title: Launch perl script on startup
body: <p>I'm currently trying to launch a perl script that is supposed to run all the time on startup.</p>
  
  <p><strong>i'm working on a CentOS server.</strong></p>
  
  <p>I added this line in <code>/etc/rc.d/rc.local</code> and the script won't start while it works when I type the same line from the console :</p>
  
  <pre><code>perl /svcmon/bin/svcperf.pl --svc fav01svc --interval 5 &gt;&gt; /dev/null &amp;
  </code></pre>
  
  <p>This script is actually supposed to be launched and you have to wait for as many time as you want datas inserted in your database, but adding</p>
  
  <pre><code>&gt;&gt; /dev/null/&amp; 
  </code></pre>
  
  <p>allows you to keep on using your machine while the script is working in background.</p>
  
  <p>I don't really know what I could do because I don't get why it doesn't work...</p>
  
  <p>Do you have any idea of what I could try ?</p>
  
  <p>EDIT : It turns out that I managed to launch my script properly by doing this :</p>
  
  <p><code>nohup /usr/bin/perl /svcmon/bin/svcperf.pl --svc fav01svc --interval 5 &gt; /outputsvcperf.txt &amp;</code></p>
  
  <p>but it doesn't work because the PostgreSQL server isn't launched in time while it is supposed to be launched on startup and before my perl script...</p>