```ruby
sysv_settings =
  case node['platform']
  when 'debian' then 'default'
  else 'sysconfig'
  end

template '/etc/init.d/docker' do
  source "docker.sysv.erb"
  mode '0644'
  owner 'root'
  group 'root'
  not_if 'test -f /etc/init.d/docker'
end

template "/etc/#{sysv_settings}/docker" do
  source "docker.#{sysv_settings}.erb"
  mode '0644'
  owner 'root'
  group 'root'
  notifies :restart, 'service[docker]', :immediately
end

service 'docker' do
  supports :status => true, :restart => true, :reload => true
  action [:start, :enable]
end
```

Fix mode on docker SysV init script
user
```ruby
sysv_settings =
  case node['platform']
  when 'debian' then 'default'
  else 'sysconfig'
  end

template '/etc/init.d/docker' do
  source "docker.sysv.erb"
  mode '0755'
  owner 'root'
  group 'root'
  not_if 'test -f /etc/init.d/docker'
end

template "/etc/#{sysv_settings}/docker" do
  source "docker.#{sysv_settings}.erb"
  mode '0644'
  owner 'root'
  group 'root'
  notifies :restart, 'service[docker]', :immediately
end

service 'docker' do
  supports :status => true, :restart => true, :reload => true
  action [:start, :enable]
end
```
assistant