Hi,
My chef code below
===============================================================================
execute “create directory BESClient” do
command “mkdir /etc/opt/BESClient && chmod 777 /etc/opt/BESClient”
end
remote_file ‘Download Remote File’ do
path ‘/etc/opt/BESClient/BESAgent-9.5.4.38-rhe5.x86_64.rpm’
source ‘ftp://9.0.0.0/pub/bigfix/BESAgent-9.5.4.38-rhe5.x86_64.rpm’
mode ‘0644’
action :create
end
execute “rpm -i /etc/opt/BESClient/BESAgent-9.5.4.38-rhe5.x86_64.rpm” do
command “bash -c ‘rpm -i /etc/opt/BESClient/BESAgent-9.5.4.38-rhe5.x86_64.rpm’”
end
remote_file ‘Download Remote File’ do
path ‘/etc/opt/BESClient/ActionSite.afxm’
source ‘ftp://9.0.0.0/pub/bigfix/ActionSite.afxm’
mode ‘0644’
action :create
end
execute “/etc/init.d/besclient start” do
command “bash -c ‘/etc/init.d/besclient start’”
end
Executing syntax
execute “/etc/init.d/besclient start” do
command “bash -c ‘/etc/init.d/besclient start’”
end
Error:
[2018-06-08T00:17:12-05:00] ERROR: execute[/etc/init.d/besclient start] (bigfix::Rhel-bigfix line 31) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of bash -c ‘/etc/init.d/besclient start’ ----
STDOUT: Starting IBM BigFix: BESClient: [FAILED]
STDERR:
---- End output of bash -c ‘/etc/init.d/besclient start’ ----
Ran bash -c ‘/etc/init.d/besclient start’ returned 1
[2018-06-08T00:17:12-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
when starting the besclient start getting error as above PLEASE ADVICE.
Thanks