All Apps and Add-ons

Installing 8.0.1 on Fedora server. Have an error that I am just missing.

bworrellZP
Communicator

During the setup, when going to have Splunk run on boot up, I run this command (after editing /etc/init.d/splunk)

sudo /opt/splunk/bin/splunk enable boot-start -systemd-managed 0 -user splunk

But rather than it run correctly, I get the following.

execve: No such file or directory
while running command /sbin/chkconfig

At work, we use RedHat with Systemd disabled for Splunk. (Note we deployed to 7.0 and have updated over time, so the servers do have systemd now, just not using it for splunk, and the boot-start was there already). Testing on Fedora for a new QA server. First time dealing with it. I know its something stupid, but missing it.

Any help would be great.

0 Karma

rfminguez
Engager

I had to install chkconfig: 

yum install chkconfig

 

harsha
Loves-to-Learn Lots

Installing chkconfig .did not resolved the issue for me.

0 Karma

ian
New Member

I have the same error on RHEL7.8 using ansible command module

 

It was working with  splunkforwarder 7.X

Any solution found ?

- name: enable boot-start -user usersplunk                                           
  command: /usr/product/splunkforwarder/bin/splunk enable boot-start -user usersplunk

 

TASK [system.installSplunkUF : enable boot-start -user usersplunk] *************
Wednesday 17 June 2020  09:27:11 +0200 (0:00:00.456)       0:00:46.208 ********
fatal: [servera]: FAILED! => {"changed": true, "cmd": ["/usr/product/splunkforwarder/bin/splunk", "enable", "boot-start",
"-user", "usersplunk"], "delta": "0:00:00.004867", "end": "2020-06-17 09:27:11.958096", "msg": "non-zero return code", "rc": 8,
"start": "2020-06-17 09:27:11.953229", "stderr": "execve: No such file or directory\n  while running command /sbin/chkconfig",
"stderr_lines": ["execve: No such file or directory", "  while running command /sbin/chkconfig"], "stdout": "", "stdout_lines
": []}
...ignoring
0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...