Skip to content

Instantly share code, notes, and snippets.

@rcreasey
Created August 2, 2010 23:29
Show Gist options
  • Select an option

  • Save rcreasey/505513 to your computer and use it in GitHub Desktop.

Select an option

Save rcreasey/505513 to your computer and use it in GitHub Desktop.
execute "reload-sysctl" do
command "/sbin/sysctl -p"
action :nothing
end
template "/etc/sysctl.conf" do
source "gstmatch/sysctl.conf.erb"
owner "root"
group "root"
notifies :run, resources(:execute => "reload-sysctl")
mode 0644
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment