When migrating Splunk Enterprise from init.d to systemd on Linux systems, users may encounter warning messages related to cgroup permissions such as below:
WARNING: Splunk was configured as a systemd service using old version service file.
WARNING: Updating to new version failed, this may cause splunk fail to start.
WARNING: Please check splunk's systemd service file and manually correct it.
This article outlines the correct migration process, required Linux OS permissions, and how to resolve legacy warning messages.
Check the steps to migrate from init.d to systemd:
su - splunk
sudo $SPLUNK_HOME/bin/splunk stop
sudo $SPLUNK_HOME/bin/splunk disable boot-start
sudo ls /etc/init.d
sudo $SPLUNK_HOME/bin/splunk enable boot-start -systemd-managed 1 -user splunk -group splunk -create-polkit-rules 1
$SPLUNK_HOME/bin/splunk start
Required Linux OS Permissions:
If you encounter a warning message related to cgroup permissions, follow these steps:
sudo vi /etc/systemd/system/Splunkd.service
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"
ExecStartPost=-/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/system.slice/%n"
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |