<?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: Mac OS Yosemite - How to start at boot time? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190332#M72990</link>
    <description>&lt;P&gt;This is a problem for me too on the UF. &lt;/P&gt;</description>
    <pubDate>Thu, 27 Nov 2014 09:13:58 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2014-11-27T09:13:58Z</dc:date>
    <item>
      <title>Mac OS Yosemite - How to start at boot time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190331#M72989</link>
      <description>&lt;P&gt;Before upgrading to Yosemite the boot-enable feature was working but now getting an error that says "hostconfig file not found".  I checked the file and it has been removed for Yosemite.  Any way to get the boot start to work?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 14:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190331#M72989</guid>
      <dc:creator>letsee</dc:creator>
      <dc:date>2014-10-30T14:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mac OS Yosemite - How to start at boot time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190332#M72990</link>
      <description>&lt;P&gt;This is a problem for me too on the UF. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:13:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190332#M72990</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2014-11-27T09:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mac OS Yosemite - How to start at boot time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190333#M72991</link>
      <description>&lt;P&gt;In Splunk 6.2.1 (and older), the "enable boot-start" on the Mac relies on the StartupItems feature of OSX.  The StartupItems feature was deprecated awhile back, OS X Yosemite removed support completely.  With Yosemite, Apple relies on "launchd/launchctl" for process startup.  &lt;/P&gt;

&lt;P&gt;SERIOUS AND MAJOR KUDOS to the folks who created &lt;A href="http://launchd.info"&gt;http://launchd.info&lt;/A&gt; for a great site on how launchd works!&lt;/P&gt;

&lt;P&gt;The good news is that you can fix this with the workaround below.  This is provided as a workaround, and not officially supported.  Test on non-critical systems, etc.  If you don't feel comfortable in a terminal window - you should probably not proceed.  &lt;/P&gt;

&lt;P&gt;Use the attached file and save it to: /Library/LaunchDaemons/com.splunk.bootstart.plist&lt;/P&gt;

&lt;P&gt;Edit the file, note the file path, and change it as necessary.   (Unless you're running Splunk in /opt/splunkforwarder like I do!)&lt;/P&gt;

&lt;P&gt;The sample file is functional but doesn't show off any fancy launchd options, Splunk will run as user "root" unless you modify the .plist file by adding UserName key/value pairs.   StdOut / StdErr are set to help troubleshoot, but may be removed if you don't want them. &lt;/P&gt;

&lt;P&gt;Once the file is edited and saved, issue the following commands to set permissions and load the profile:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo chown root /Library/LaunchDaemons/com.splunk.bootstart.plist
sudo chmod644 /Library/LaunchDaemons/com.splunk.bootstart.plist
sudo launchctl load -w /Library/LaunchDaemons/com.splunk.bootstart.plist
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If everything worked, splunk will start immediately when you run the command above.   And at every reboot thereafter.&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
 &amp;lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&amp;gt;
 &amp;lt;plist version="1.0"&amp;gt;
    &amp;lt;dict&amp;gt;
       &amp;lt;key&amp;gt;Label&amp;lt;/key&amp;gt;
       &amp;lt;string&amp;gt;com.splunk.bootstart&amp;lt;/string&amp;gt;
       &amp;lt;key&amp;gt;ProgramArguments&amp;lt;/key&amp;gt;
       &amp;lt;array&amp;gt;
          &amp;lt;string&amp;gt;/opt/splunkforwarder/bin/splunk&amp;lt;/string&amp;gt;
          &amp;lt;string&amp;gt;start&amp;lt;/string&amp;gt;
       &amp;lt;/array&amp;gt;
       &amp;lt;key&amp;gt;RunAtLoad&amp;lt;/key&amp;gt;
       &amp;lt;true /&amp;gt;
       &amp;lt;key&amp;gt;StandardErrorPath&amp;lt;/key&amp;gt;
       &amp;lt;string&amp;gt;/tmp/splunkboot.stderr&amp;lt;/string&amp;gt;
       &amp;lt;key&amp;gt;StandardOutPath&amp;lt;/key&amp;gt;
       &amp;lt;string&amp;gt;/tmp/splunkboot.stdout&amp;lt;/string&amp;gt;
    &amp;lt;/dict&amp;gt;
 &amp;lt;/plist&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Feb 2015 23:02:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190333#M72991</guid>
      <dc:creator>mdonnelly_splun</dc:creator>
      <dc:date>2015-02-10T23:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mac OS Yosemite - How to start at boot time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190334#M72992</link>
      <description>&lt;P&gt;Thanks. This fix appears to be working.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 19:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190334#M72992</guid>
      <dc:creator>firehaus</dc:creator>
      <dc:date>2015-10-21T19:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mac OS Yosemite - How to start at boot time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190335#M72993</link>
      <description>&lt;P&gt;typo in your chmod command (missing a space) but works perfectly even with the DMG installed version if you modify the path to the splunk binary correctly - and confirmed working on el Capitan (10.11.x)&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 17:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190335#M72993</guid>
      <dc:creator>anthonysomerset</dc:creator>
      <dc:date>2016-04-25T17:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mac OS Yosemite - How to start at boot time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190336#M72994</link>
      <description>&lt;P&gt;First of all, how come this isn't installed by default now?&lt;/P&gt;

&lt;P&gt;Also, could someone fix that typo already mentioned on the second chmod command (add a space)?&lt;/P&gt;

&lt;P&gt;Finally, the above does not work with version 7 since the path to splunk has changed, so here is an updated version:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
  &amp;lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&amp;gt;
  &amp;lt;plist version="1.0"&amp;gt;
     &amp;lt;dict&amp;gt;
        &amp;lt;key&amp;gt;Label&amp;lt;/key&amp;gt;
        &amp;lt;string&amp;gt;com.splunk.bootstart&amp;lt;/string&amp;gt;
        &amp;lt;key&amp;gt;ProgramArguments&amp;lt;/key&amp;gt;
        &amp;lt;array&amp;gt;
           &amp;lt;string&amp;gt;/opt/splunkforwarder/bin/splunk&amp;lt;/string&amp;gt;
           &amp;lt;string&amp;gt;start&amp;lt;/string&amp;gt;
        &amp;lt;/array&amp;gt;
        &amp;lt;key&amp;gt;RunAtLoad&amp;lt;/key&amp;gt;
        &amp;lt;true /&amp;gt;
        &amp;lt;key&amp;gt;StandardErrorPath&amp;lt;/key&amp;gt;
        &amp;lt;string&amp;gt;/tmp/splunkboot.stderr&amp;lt;/string&amp;gt;
        &amp;lt;key&amp;gt;StandardOutPath&amp;lt;/key&amp;gt;
        &amp;lt;string&amp;gt;/tmp/splunkboot.stdout&amp;lt;/string&amp;gt;
     &amp;lt;/dict&amp;gt;
  &amp;lt;/plist&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 20:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Mac-OS-Yosemite-How-to-start-at-boot-time/m-p/190336#M72994</guid>
      <dc:creator>beezwax</dc:creator>
      <dc:date>2017-10-18T20:53:02Z</dc:date>
    </item>
  </channel>
</rss>

