Method: Chef::Provider::Service::Systemd#reload_service

Defined in:
lib/chef/provider/service/systemd.rb

#reload_serviceObject


158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/chef/provider/service/systemd.rb', line 158

def reload_service
  if new_resource.reload_command
    super
  else
    if current_resource.running
      options, args = get_systemctl_options_args
      shell_out!(systemctl_path, args, "reload", new_resource.service_name, default_env: false, **options)
    else
      start_service
    end
  end
end