You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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/splunk/bin/splunk _internal_launch_under_systemd
KillMode=mixed
KillSignal=SIGINT
TimeoutStopSec=360
LimitNOFILE=65536
SuccessExitStatus=51 52
RestartPreventExitStatus=51
RestartForceExitStatus=52
User=splunker
Group=splunker
Delegate=true
CPUShares=1024
MemoryLimit=<value>
PermissionsStartOnly=true
ExecStartPost=/bin/bash -c "chown -R splunker:splunker /sys/fs/cgroup/cpu/system.slice/%n"ExecStartPost=/bin/bash -c "chown -R splunker:splunker /sys/fs/cgroup/memory/system.slice/%n"[Install]WantedBy=multi-user.target
The current configuration does not allow for the Workload management to be enabled via an ansible installation (at least the ExecStart and the Restart need to be changed.
I'm not a Unix expert so I don't really know the impact of this.
The text was updated successfully, but these errors were encountered:
Good catch. I came across this in the docs as well, but only after the refactor to rely on service restarts for everything was done. I have not tested with workload management to confirm that the current configuration does not work with it, but I agree that we generally should be aligned with the best practices from the docs.
This is going to require some additional refactoring, as ExecStart=/opt/splunk/bin/splunk _internal_launch_under_systemd does not accept additional arguments, namely --accept-license which means we'll need to make a new task that does splunk ftr --accept-licence --no-prompt --answer-yes and include it at the appropriate points (ie after install/upgrade but before starting splunk) during the installation and upgrade tasks.
mason-splunk
changed the title
Issue : Systemd configuration does not reflect Splunk Configuration
Issue : Systemd configuration does not reflect Splunk Docs Systemd Configuration
Mar 22, 2021
mason-splunk
changed the title
Issue : Systemd configuration does not reflect Splunk Docs Systemd Configuration
Issue : Current Systemd implementation may not support workload management per Splunk Docs Systemd configuration
Mar 22, 2021
Configuration of the systemd Splunkd.service is using the following values :
when the splunk documentation is asking for :
The current configuration does not allow for the Workload management to be enabled via an ansible installation (at least the
ExecStart
and theRestart
need to be changed.I'm not a Unix expert so I don't really know the impact of this.
The text was updated successfully, but these errors were encountered: