Skip to content

Instantly share code, notes, and snippets.

@vinyar
Created July 11, 2014 22:05
Show Gist options
  • Save vinyar/b3a9ca0d50f0a7468d90 to your computer and use it in GitHub Desktop.
Save vinyar/b3a9ca0d50f0a7468d90 to your computer and use it in GitHub Desktop.
56 puts node['ge_netbackup']['bpcd_start_command']
57 service "bpcd" do
58 start_command node['ge_netbackup']['bpcd_start_command']
59 action :start
60 end
12:43PM
> [#] Recipe: ge_netbackup::configure_linux
> [#] * service[bpcd] action start[2014-07-11T15:38:53-04:00] INFO: Processing service[bpcd] action start (ge_netbackup::configure_linux line 57)
> [#]
> [#] * service[bpcd]: unable to locate the init.d script!
> [#]
> [#] ================================================================================
> [#] Error executing action `start` on resource 'service[bpcd]'
> [#] ================================================================================
> [#]
> [#]
> [#] Chef::Exceptions::Service
> [#] -------------------------
> [#] service[bpcd]: unable to locate the init.d script!
> [#]
> [#]
> [#] Resource Declaration:
> [#] ---------------------
> [#] # In /tmp/kitchen/cookbooks/ge_netbackup/recipes/configure_linux.rb
> [#]
> [#] 57: service "bpcd" do
> [#] 58: start_command node['ge_netbackup']['bpcd_start_command']
> [#] 59: action :start
> [#] 60: end
> [#] 61:
> [#]
> [#]
> [#]
> [#] Compiled Resource:
> [#] ------------------
> [#] # Declared in /tmp/kitchen/cookbooks/ge_netbackup/recipes/configure_linux.rb:57:in `from_file'
> [#]
> [#] service("bpcd") do
> [#] action [:start]
> [#] supports {:restart=>false, :reload=>false, :status=>true}
> [#] retries 0
> [#] retry_delay 2
> [#] guard_interpreter :default
> [#] service_name "bpcd"
> [#] pattern "bpcd"
> [#] start_command "/usr/openv/netbackup/bin/bpcd -standalone"
> [#] cookbook_name :ge_netbackup
> [#] recipe_name "configure_linux"
> [#] end
12:44PM
I assumed start_command would overide the need for an init.d script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment