<?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 Systemd services on Raspberry pi in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Systemd-services-on-Raspberry-pi/m-p/583932#M11170</link>
    <description>&lt;P&gt;Hello Splunkers,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have installed splunk universal forwarder (ARMv6) on Raspbeery pi (running on Raspbeery OS 32 bit). I had enabled splunkd instance for user splunk (not an admin user) by following commands&lt;BR /&gt;&lt;BR /&gt;1. sudo chown -R splunk: /opt/splunkforwarder&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;sudo /opt/splunkforwarder/bin/splunk enable boot-start -systemd-managed 1 -user splunk -group splunk&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;sudo su splunk&lt;BR /&gt;&lt;SPAN&gt;4.&amp;nbsp;&lt;/SPAN&gt;sudo systemctl start SplunkForwarder&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately I get the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Job for SplunkForwarder.service failed because the control process exited with error code.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;See "systemctl status SplunkForwarder.service" and "journalctl -xe" for details&lt;BR /&gt;&lt;BR /&gt;SplunkForwarder.service:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#This unit file replaces the traditional start-up script for systemd
#configurations, and is used when enabling boot-start for Splunk on
#systemd-based Linux distributions.

[Unit]
Description=Systemd service file for Splunk, generated by 'splunk enable boot-start'
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/opt/splunkforwarder/bin/splunk _internal_launch_under_systemd
KillMode=mixed
KillSignal=SIGINT
TimeoutStopSec=360
LimitNOFILE=65536
SuccessExitStatus=51 52
RestartPreventExitStatus=51
RestartForceExitStatus=52
User=splunk
Group=splunk
Delegate=true
CPUShares=1024
MemoryLimit=1963114496
PermissionsStartOnly=true
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/cpu/system.slice/%n"
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/memory/system.slice/%n"

[Install]
WantedBy=multi-user.target
root@raspberrypi:/etc/systemd/system#&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Does anyone have an idea how to enable systemd service on Raspberry pi so that splunk start automatically even with reboot?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 12:57:43 GMT</pubDate>
    <dc:creator>bhvk619</dc:creator>
    <dc:date>2022-02-07T12:57:43Z</dc:date>
    <item>
      <title>Systemd services on Raspberry pi</title>
      <link>https://community.splunk.com/t5/Installation/Systemd-services-on-Raspberry-pi/m-p/583932#M11170</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have installed splunk universal forwarder (ARMv6) on Raspbeery pi (running on Raspbeery OS 32 bit). I had enabled splunkd instance for user splunk (not an admin user) by following commands&lt;BR /&gt;&lt;BR /&gt;1. sudo chown -R splunk: /opt/splunkforwarder&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;sudo /opt/splunkforwarder/bin/splunk enable boot-start -systemd-managed 1 -user splunk -group splunk&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;sudo su splunk&lt;BR /&gt;&lt;SPAN&gt;4.&amp;nbsp;&lt;/SPAN&gt;sudo systemctl start SplunkForwarder&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately I get the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Job for SplunkForwarder.service failed because the control process exited with error code.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;See "systemctl status SplunkForwarder.service" and "journalctl -xe" for details&lt;BR /&gt;&lt;BR /&gt;SplunkForwarder.service:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#This unit file replaces the traditional start-up script for systemd
#configurations, and is used when enabling boot-start for Splunk on
#systemd-based Linux distributions.

[Unit]
Description=Systemd service file for Splunk, generated by 'splunk enable boot-start'
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/opt/splunkforwarder/bin/splunk _internal_launch_under_systemd
KillMode=mixed
KillSignal=SIGINT
TimeoutStopSec=360
LimitNOFILE=65536
SuccessExitStatus=51 52
RestartPreventExitStatus=51
RestartForceExitStatus=52
User=splunk
Group=splunk
Delegate=true
CPUShares=1024
MemoryLimit=1963114496
PermissionsStartOnly=true
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/cpu/system.slice/%n"
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/memory/system.slice/%n"

[Install]
WantedBy=multi-user.target
root@raspberrypi:/etc/systemd/system#&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Does anyone have an idea how to enable systemd service on Raspberry pi so that splunk start automatically even with reboot?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 12:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Systemd-services-on-Raspberry-pi/m-p/583932#M11170</guid>
      <dc:creator>bhvk619</dc:creator>
      <dc:date>2022-02-07T12:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Systemd services on Raspberry pi</title>
      <link>https://community.splunk.com/t5/Installation/Systemd-services-on-Raspberry-pi/m-p/583944#M11171</link>
      <description>&lt;P&gt;Fisrtly, don't do "su splunk" if you want ot "sudo systemctl" (unless you have very strange sudoers restrictions).&lt;/P&gt;&lt;P&gt;Secondly:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;See "systemctl status SplunkForwarder.service" and "journalctl -xe" for details&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Systemd-services-on-Raspberry-pi/m-p/583944#M11171</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-07T13:56:01Z</dc:date>
    </item>
  </channel>
</rss>

