<?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: what is ExecStartPost in systemd unit itended for? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/what-is-ExecStartPost-in-systemd-unit-itended-for/m-p/749872#M29591</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/194518"&gt;@schose&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that WLM configuration existed (but not supported/fully implemented) in UF &amp;lt;9.x (You can confirm exact versions by checking for existence of&amp;nbsp;workload_policy.conf, workload_pools.conf &amp;amp; workload_rules.conf files).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This led to&amp;nbsp;SPL-224264 which caused some failures starting UF 9.x when upgrading from 8.x where the startup script contained the ExecStartPost commands you referenced.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe this should be fixed in a later 9.0.x and 9.1.x version but cannot find the exact version at the moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround for this users should disable and re-enable boot-start.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also submitted feedback regarding the&amp;nbsp;Reference unit file template in the docs which obviously hasnt been updated the reflect the change when they removed the WLM configurations from UF.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 06:39:03 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-07-16T06:39:03Z</dc:date>
    <item>
      <title>what is ExecStartPost in systemd unit itended for?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/what-is-ExecStartPost-in-systemd-unit-itended-for/m-p/749860#M29589</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;When creating a systemd unit file for and old UF (&amp;lt;9.1) using "splunk enable boot-start -systemd-managed 1 -user .. "&lt;/P&gt;&lt;P&gt;a systemd file is created with content:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;[Service]
ExecStartPost=/bin/bash -c "chown -R splunkfwd:splunkfwd /sys/fs/cgroup/cpu/system.slice/%n" 
ExecStartPost=/bin/bash -c "chown -R splunkfwd:splunkfwd /sys/fs/cgroup/memory/system.slice/%n"&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;This is also documented in here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://help.splunk.com/en/splunk-enterprise/forward-and-process-data/universal-forwarder-manual/9.4/working-with-the-universal-forwarder/manage-a-linux-least-privileged-user" target="_blank" rel="noopener"&gt;https://help.splunk.com/en/splunk-enterprise/forward-and-process-data/universal-forwarder-manual/9.4/working-with-the-universal-forwarder/manage-a-linux-least-privileged-user&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In "Reference unit file template".&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Does anyone have an idea why this is done? The paths are using cgroupv1 which only exists on old linux systems, on up-to-date systems this chown fails, but service starts anyway.&amp;nbsp;&lt;BR /&gt;When creating a systemd config with recent UFs these&amp;nbsp;ExecStartPost Parameters are not set anymore.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;BUT when installing Splunk Enterprise this line is set in systemd unit&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ExecStartPost=-/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/system.slice/%n"&lt;/LI-CODE&gt;&lt;P&gt;AFAIK splunk core uses cgroups for Workspace Management, but not on UF.&lt;/P&gt;&lt;P&gt;Is the reference unit file template for UF just old&amp;amp;false and the settings never had a sense or is there any good reason?&lt;/P&gt;&lt;P&gt;thanks for your help and best regards,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 21:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/what-is-ExecStartPost-in-systemd-unit-itended-for/m-p/749860#M29589</guid>
      <dc:creator>schose</dc:creator>
      <dc:date>2025-07-15T21:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: what is ExecStartPost in systemd unit itended for?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/what-is-ExecStartPost-in-systemd-unit-itended-for/m-p/749867#M29590</link>
      <description>&lt;P class="lia-align-justify"&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/194518"&gt;@schose&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think Splunk might have used same template for the enterprise and UF in older versions. This setting is mainly for workload management feature in Splunk Enterprise which is not relevant for UF.&lt;/P&gt;&lt;P&gt;That's the reason I think they have removed the same on newer UF's.&lt;/P&gt;&lt;P&gt;Also if you are still using any older UF's, removing those lines or commenting them can suppress the errors it throws.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 04:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/what-is-ExecStartPost-in-systemd-unit-itended-for/m-p/749867#M29590</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-07-16T04:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: what is ExecStartPost in systemd unit itended for?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/what-is-ExecStartPost-in-systemd-unit-itended-for/m-p/749872#M29591</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/194518"&gt;@schose&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that WLM configuration existed (but not supported/fully implemented) in UF &amp;lt;9.x (You can confirm exact versions by checking for existence of&amp;nbsp;workload_policy.conf, workload_pools.conf &amp;amp; workload_rules.conf files).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This led to&amp;nbsp;SPL-224264 which caused some failures starting UF 9.x when upgrading from 8.x where the startup script contained the ExecStartPost commands you referenced.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe this should be fixed in a later 9.0.x and 9.1.x version but cannot find the exact version at the moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround for this users should disable and re-enable boot-start.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also submitted feedback regarding the&amp;nbsp;Reference unit file template in the docs which obviously hasnt been updated the reflect the change when they removed the WLM configurations from UF.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 06:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/what-is-ExecStartPost-in-systemd-unit-itended-for/m-p/749872#M29591</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-07-16T06:39:03Z</dc:date>
    </item>
  </channel>
</rss>

