<?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 Light Forwarder for Linux - Autostart in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40051#M7441</link>
    <description>&lt;P&gt;Is there a command line switch for the light forwarder (much like the one for splunkd) that will install the service in init.d for automatic starting with the server?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2011 00:28:36 GMT</pubDate>
    <dc:creator>beaunewcomb</dc:creator>
    <dc:date>2011-02-08T00:28:36Z</dc:date>
    <item>
      <title>Light Forwarder for Linux - Autostart</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40051#M7441</link>
      <description>&lt;P&gt;Is there a command line switch for the light forwarder (much like the one for splunkd) that will install the service in init.d for automatic starting with the server?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2011 00:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40051#M7441</guid>
      <dc:creator>beaunewcomb</dc:creator>
      <dc:date>2011-02-08T00:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Light Forwarder for Linux - Autostart</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40052#M7442</link>
      <description>&lt;P&gt;See the following docs page:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/ConfigureSplunktostartatboottime" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/ConfigureSplunktostartatboottime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;BTW, I do like to make a minor change to Splunk's default boot script that makes the startup work in a few extra situations.  (For example, after a splunk upgrade)&lt;/P&gt;

&lt;P&gt;By default, you'll see a line that looks like this (your's may be slightly different depending on what user &lt;CODE&gt;splunkd&lt;/CODE&gt; is running as on your system, on mine the user is simply called "splunk").  This is in the &lt;CODE&gt;splunk_start()&lt;/CODE&gt; function.&lt;/P&gt;

&lt;P&gt;I change this line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;su splunk -c "\"$SPLUNK_HOME/bin/splunk\" start"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;su splunk -c "\"$SPLUNK_HOME/bin/splunk\" start --accept-license --answer-yes"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This ensures that any migration questions or license acceptance issues do not prevent splunk from starting up on an unattended boot.  There are other startup options as well, but these are the two that I've found to work best for us.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2011 00:30:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40052#M7442</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-02-08T00:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Light Forwarder for Linux - Autostart</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40053#M7443</link>
      <description>&lt;P&gt;Thanks for your response, but that's for the splunk server. I'm looking for the forwarder.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2011 00:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40053#M7443</guid>
      <dc:creator>beaunewcomb</dc:creator>
      <dc:date>2011-02-08T00:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Light Forwarder for Linux - Autostart</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40054#M7444</link>
      <description>&lt;P&gt;It's the same for both.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2011 01:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Light-Forwarder-for-Linux-Autostart/m-p/40054#M7444</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-02-08T01:48:07Z</dc:date>
    </item>
  </channel>
</rss>

