Class: Chef::Provider::ContainerServiceRunit

Inherits:
LWRPBase
  • Object
show all
Defined in:
lib/chef/provider/container_service_runit.rb

Instance Method Summary collapse

Instance Method Details

#log_run_script_contentObject



80
81
82
83
# File 'lib/chef/provider/container_service_runit.rb', line 80

def log_run_script_content
  "#!/bin/sh
exec svlogd -tt /var/log/#{new_resource.service_name}"
end

#run_script_contentObject



74
75
76
77
78
# File 'lib/chef/provider/container_service_runit.rb', line 74

def run_script_content
  "#!/bin/sh
exec 2>&1
exec #{new_resource.command} 2>&1"
end

#service_dir_nameObject



70
71
72
# File 'lib/chef/provider/container_service_runit.rb', line 70

def service_dir_name
  ::File.join(new_resource.service_dir, new_resource.service_name)
end

#sv_dir_nameObject

Helper Resource Methods



66
67
68
# File 'lib/chef/provider/container_service_runit.rb', line 66

def sv_dir_name
  ::File.join(new_resource.sv_dir, new_resource.service_name)
end

#whyrun_supported?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/chef/provider/container_service_runit.rb', line 23

def whyrun_supported?
  true
end