mode 0644
variables params[:variables]
if File.exists?("/etc/apache2/mods-enabled/#{name}.load")
- notifies :reload, resources(:service => "apache2")
+ notifies :reload, "service[apache2]"
end
end
end
if module_action.include?(:enable)
execute "a2enmod-#{name}" do
command "/usr/sbin/a2enmod #{name}"
- notifies :restart, resources(:service => "apache2")
+ notifies :restart, "service[apache2]"
not_if { File.exists?("/etc/apache2/mods-enabled/#{name}.load") }
end
elsif module_action.include?(:disable) or module_action.include?(:remove)
execute "a2dismod-#{name}" do
command "/usr/sbin/a2dismod #{name}"
- notifies :restart, resources(:service => "apache2")
+ notifies :restart, "service[apache2]"
only_if { File.exists?("/etc/apache2/mods-enabled/#{name}.load") }
end
end
mode 0644
variables params[:variables].merge(:name => name, :directory => directory)
if File.exists?("/etc/apache2/sites-enabled/#{link_name}")
- notifies :reload, resources(:service => "apache2")
+ notifies :reload, "service[apache2]"
end
end
end
if site_action.include?(:enable)
execute "a2ensite-#{name}" do
command "/usr/sbin/a2ensite #{name}"
- notifies :restart, resources(:service => "apache2")
+ notifies :restart, "service[apache2]"
not_if { File.exists?("/etc/apache2/sites-enabled/#{link_name}") }
end
elsif site_action.include?(:disable) or site_action.include?(:delete)
execute "a2dissite-#{name}" do
action :run
command "/usr/sbin/a2dissite #{name}"
- notifies :restart, resources(:service => "apache2")
+ notifies :restart, "service[apache2]"
only_if { File.exists?("/etc/apache2/sites-enabled/#{link_name}") }
end
end
group "root"
mode 0644
variables :certificate => certificate
- notifies :reload, resources(:service => "apache2")
+ notifies :reload, "service[apache2]"
end
service "apache2" do
action :nothing
- subscribes :restart, resources(:cookbook_file => "/etc/ssl/certs/rapidssl.pem")
- subscribes :restart, resources(:cookbook_file => "/etc/ssl/certs/#{certificate}.pem")
- subscribes :restart, resources(:file => "/etc/ssl/private/#{certificate}.key")
+ subscribes :restart, "cookbook_file[/etc/ssl/certs/rapidssl.pem]"
+ subscribes :restart, "cookbook_file[/etc/ssl/certs/#{certificate}.pem]"
+ subscribes :restart, "file[/etc/ssl/private/#{certificate}.key]"
end
owner "root"
group "root"
mode 0644
- notifies :run, resources(:execute => "apt-update")
+ notifies :run, "execute[apt-update]"
variables :url => params[:url]
end
end
owner "root"
group "root"
mode 0644
- notifies :run, resources(:execute => "apt-update")
+ notifies :run, "execute[apt-update]"
end
apt_source "opscode" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "bind9")
+ notifies :restart, "service[bind9]"
end
template "/etc/bind/named.conf.options" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "bind9")
+ notifies :restart, "service[bind9]"
end
template "/etc/bind/db.10" do
owner "root"
group "root"
mode 0644
- notifies :reload, resources(:service => "bind9")
+ notifies :reload, "service[bind9]"
end
firewall_rule "accept-dns-udp" do
owner "root"
group "root"
mode 0644
- notifies :reload, resources(:ohai => plugin_name)
+ notifies :reload, "ohai[#{plugin_name}]"
end
elsif plugin_action.include?(:delete)
template "/etc/chef/ohai/#{plugin_name}.rb" do
cwd "/usr/share/drupal7/sites/all/modules/civicrm"
user "root"
group "root"
- notifies :run, resources(:execute => "civicrm-load-acl")
+ notifies :run, "execute[civicrm-load-acl]"
end
execute "civicrm-load" do
cwd "/usr/share/drupal7/sites/all/modules/civicrm"
user "root"
group "root"
- notifies :run, resources(:execute => "civicrm-load-data")
+ notifies :run, "execute[civicrm-load-data]"
end
execute "civicrm-gencode" do
user "root"
group "root"
creates "#{civicrm_directory}/civicrm-version.php"
- notifies :run, resources(:execute => "civicrm-load")
+ notifies :run, "execute[civicrm-load]"
end
directory "/data/crm.osmfoundation.org/civicrm/en_US" do
cwd "/srv/www.openstreetmap.org/rails/db/functions"
user "rails"
group "rails"
- subscribes :run, resources(:git => "/srv/www.openstreetmap.org/rails")
+ subscribes :run, "git[/srv/www.openstreetmap.org/rails]"
end
owner "root"
group "root"
mode 0644
- notifies :reload, resources(:service => "php5-fpm")
+ notifies :reload, "service[php5-fpm]"
end
file "/etc/php5/fpm/pool.d/www.conf" do
action :delete
- notifies :reload, resources(:service => "php5-fpm")
+ notifies :reload, "service[php5-fpm]"
end
package "phppgadmin"
group "root"
mode 0644
variables :user => name
- notifies :reload, resources(:service => "php5-fpm")
+ notifies :reload, "service[php5-fpm]"
end
apache_site "#{name}.dev.openstreetmap.org" do
group "apis"
mode 0644
variables :site => site_name
- notifies :touch, resources(:file => "#{rails_directory}/tmp/restart.txt")
+ notifies :touch, "file[#{rails_directory}/tmp/restart.txt]"
end
apache_site site_name do
owner "root"
group "root"
mode 0644
- notifies :run, resources(:execute => "udevadm-trigger")
+ notifies :run, "execute[udevadm-trigger]"
end
owner "git"
group "git"
mode 02775
- notifies :run, resources(:execute => "dns-update")
+ notifies :run, "execute[dns-update]"
end
cookbook_file "#{node[:dns][:repository]}/hooks/post-receive" do
mode 0644
variables :relay_to_domains => relay_to_domains.sort,
:relay_from_hosts => relay_from_hosts.sort
- notifies :restart, resources(:service => "exim4")
+ notifies :restart, "service[exim4]"
end
search(:accounts, "*:*").each do |account|
file "/etc/powerdns/pdns.d/pdns.simplebind" do
action :delete
- notifies :reload, resources(:service => "pdns")
+ notifies :reload, "service[pdns]"
end
template "/etc/powerdns/pdns.d/geo.conf" do
owner "root"
group "root"
mode "0600"
- notifies :reload, resources(:service => "pdns")
+ notifies :reload, "service[pdns]"
end
directory "/etc/powerdns/zones.d" do
owner "root"
group "root"
mode "0644"
- notifies :reload, resources(:service => "pdns")
+ notifies :reload, "service[pdns]"
end
template "/etc/cron.weekly/geodns-update" do
owner "root"
group "root"
mode 0644
- notifies :reload, resources(:service => "xinetd")
+ notifies :reload, "service[xinetd]"
end
provider Chef::Provider::Service::Upstart
action [ :enable, :start ]
supports :status => true, :restart => true, :reload => false
- subscribes :restart, resources(:template => "/etc/init/ttyS#{unit}.conf")
+ subscribes :restart, "template[/etc/init/ttyS#{unit}.conf]"
end
end
group "root"
mode 0644
variables :unit => unit, :speed => speed
- notifies :run, resources(:execute => "update-grub")
+ notifies :run, "execute[update-grub]"
end
end
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "memcached")
+ notifies :restart, "service[memcached]"
end
munin_plugin_conf "memcached_multi" do
link "/etc/munin/plugins/#{params[:name]}" do
action params[:action]
to target_path
- notifies :restart, resources(:service => "munin-node")
+ notifies :restart, "service[munin-node]"
end
end
group "root"
mode 0644
variables params[:variables].merge(:name => params[:name])
- notifies :restart, resources(:service => "munin-node")
+ notifies :restart, "service[munin-node]"
end
else
file "/etc/munin/plugin-conf.d/#{params[:name]}" do
group "root"
mode 0644
variables :servers => servers
- notifies :restart, resources(:service => "munin-node")
+ notifies :restart, "service[munin-node]"
end
remote_directory "/usr/local/share/munin/plugins" do
files_group "root"
files_mode 0644
purge false
- notifies :restart, resources(:service => "munin-node")
+ notifies :restart, "service[munin-node]"
end
if Dir.glob("/proc/acpi/thermal_zone/*/temperature").empty?
owner "root"
group "root"
mode 0644
- notifies :reload, resources(:service => "mysql")
+ notifies :reload, "service[mysql]"
end
package "libdbd-mysql-perl"
owner "root"
group "root"
mode 0644
- notifies :run, resources(:execute => "hostname")
+ notifies :run, "execute[hostname]"
end
template "/etc/hosts" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
template "/etc/shorewall/shorewall.conf" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
template "/etc/shorewall/zones" do
group "root"
mode 0644
variables :type => "ipv4"
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
template "/etc/shorewall/interfaces" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
template "/etc/shorewall/hosts" do
group "root"
mode 0644
variables :zones => zones
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
template "/etc/shorewall/policy" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
template "/etc/shorewall/rules" do
group "root"
mode 0644
variables :rules => []
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
firewall_rule "limit-icmp-echo" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
else
file "/etc/shorewall/masq" do
action :delete
- notifies :restart, resources(:service => "shorewall")
+ notifies :restart, "service[shorewall]"
end
end
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall6")
+ notifies :restart, "service[shorewall6]"
end
template "/etc/shorewall6/shorewall6.conf" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall6")
+ notifies :restart, "service[shorewall6]"
end
template "/etc/shorewall6/zones" do
group "root"
mode 0644
variables :type => "ipv6"
- notifies :restart, resources(:service => "shorewall6")
+ notifies :restart, "service[shorewall6]"
end
template "/etc/shorewall6/interfaces" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall6")
+ notifies :restart, "service[shorewall6]"
end
template "/etc/shorewall6/hosts" do
group "root"
mode 0644
variables :zones => zones
- notifies :restart, resources(:service => "shorewall6")
+ notifies :restart, "service[shorewall6]"
end
template "/etc/shorewall6/policy" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "shorewall6")
+ notifies :restart, "service[shorewall6]"
end
template "/etc/shorewall6/rules" do
group "root"
mode 0644
variables :rules => []
- notifies :restart, resources(:service => "shorewall6")
+ notifies :restart, "service[shorewall6]"
end
firewall_rule "limit-icmp6-echo" do
group "root"
mode 0644
variables :exports => exports
- notifies :run, resources(:execute => "exportfs")
+ notifies :run, "execute[exportfs]"
end
group "root"
mode 0644
variables params[:variables].merge(:name => name, :directory => directory)
- notifies :reload, resources(:service => "nginx")
+ notifies :reload, "service[nginx]"
end
end
if site_action.include?(:delete)
file "/etc/nginx/conf.d/#{name}.conf" do
action :delete
- notifies :restart, resources(:service => "nginx")
+ notifies :restart, "service[nginx]"
end
end
end
group "root"
mode 0644
variables data.merge(:name => name)
- notifies :reload, resources(:service => "php5-fpm")
+ notifies :reload, "service[php5-fpm]"
end
end
group "root"
mode 0644
content "#{node[:tz]}\n"
- notifies :run, resources(:execute => "dpkg-reconfigure-tzdata"), :immediately
+ notifies :run, "execute[dpkg-reconfigure-tzdata]", :immediately
end
service "ntp" do
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "ntp")
+ notifies :restart, "service[ntp]"
end
munin_plugins = [ "ntp_kernel_err", "ntp_kernel_pll_freq", "ntp_kernel_pll_off", "ntp_offset" ]
:port => node[:openvpn][:tunnels][name][:port],
:mode => node[:openvpn][:tunnels][name][:mode],
:peer => node[:openvpn][:tunnels][name][:peer]
- notifies :restart, resources(:service => "openvpn")
+ notifies :restart, "service[openvpn]"
end
else
file "/etc/openvpn/#{name}.conf" do
cwd "#{directory}/osqa"
user site_user
group site_group
- notifies :reload, resources(:service => "apache2")
+ notifies :reload, "service[apache2]"
end
subversion "#{directory}/osqa" do
revision osqa_revision
user site_user
group site_group
- notifies :run, resources(:execute => "osqa-migrate")
+ notifies :run, "execute[osqa-migrate]"
end
remote_directory "#{directory}/osqa/forum_modules/osmauth" do
group site_group
mode 0644
variables :directory => directory
- notifies :reload, resources(:service => "apache2")
+ notifies :reload, "service[apache2]"
end
settings = edit_file "#{directory}/osqa/settings_local.py.dist" do |line|
group site_group
mode 0644
content settings
- notifies :reload, resources(:service => "apache2")
+ notifies :reload, "service[apache2]"
end
end
group "www-data"
mode 0664
content IO.read(distname)
- notifies :run, resources(:execute => "/opt/otrs/bin/Cron.sh")
+ notifies :run, "execute[/opt/otrs/bin/Cron.sh]"
end
end
cwd "/srv/owl.openstreetmap.org/openstreetmap-watch-list/rails"
user "root"
group "root"
- notifies :touch, resources(:file => "/srv/owl.openstreetmap.org/openstreetmap-watch-list/rails/tmp/restart.txt")
+ notifies :touch, "file[/srv/owl.openstreetmap.org/openstreetmap-watch-list/rails/tmp/restart.txt]"
end
git "/srv/owl.openstreetmap.org/openstreetmap-watch-list" do
revision "owl.osm.org"
user "owl"
group "owl"
- notifies :run, resources(:execute => "/srv/owl.openstreetmap.org/openstreetmap-watch-list/rails/Gemfile")
+ notifies :run, "execute[/srv/owl.openstreetmap.org/openstreetmap-watch-list/rails/Gemfile]"
end
directory "srv/owl.openstreetmap.org/openstreetmap-watch-list/rails/tmp" do
owner "owl"
group "owl"
mode 0664
- notifies :run, resources(:execute => "/srv/owl.openstreetmap.org/openstreetmap-watch-list/rails/Gemfile")
+ notifies :run, "execute[/srv/owl.openstreetmap.org/openstreetmap-watch-list/rails/Gemfile]"
only_if { node[:postgresql][:clusters]["9.1/main"] }
end
group "postgres"
mode 0644
variables :version => version, :defaults => defaults, :settings => settings
- notifies :reload, resources(:service => "postgresql")
+ notifies :reload, "service[postgresql]"
end
template "/etc/postgresql/#{version}/main/pg_hba.conf" do
mode 0640
variables :early_rules => settings[:early_authentication_rules] || defaults[:early_authentication_rules],
:late_rules => settings[:late_authentication_rules] || defaults[:late_authentication_rules]
- notifies :reload, resources(:service => "postgresql")
+ notifies :reload, "service[postgresql]"
end
template "/etc/postgresql/#{version}/main/pg_ident.conf" do
group "postgres"
mode 0640
variables :maps => settings[:user_name_maps] || defaults[:user_name_maps]
- notifies :reload, resources(:service => "postgresql")
+ notifies :reload, "service[postgresql]"
end
link "/var/lib/postgresql/#{version}/main/server.crt" do
group "postgres"
mode 0640
variables :defaults => defaults, :settings => settings
- notifies :reload, resources(:service => "postgresql")
+ notifies :reload, "service[postgresql]"
end
else
template "/var/lib/postgresql/#{version}/main/recovery.conf" do
action :delete
- notifies :reload, resources(:service => "postgresql")
+ notifies :reload, "service[postgresql]"
end
end
end
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "rsync")
+ notifies :restart, "service[rsync]"
end
template "/etc/rsyncd.conf" do
group "root"
mode 0600
variables :communities => communities
- notifies :restart, resources(:service => "snmpd")
+ notifies :restart, "service[snmpd]"
end
node[:snmpd][:clients].each do |address|
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "spamassassin")
+ notifies :restart, "service[spamassassin]"
end
trusted_networks = node[:exim][:relay_from_hosts]
group "root"
mode 0644
variables :trusted_networks => trusted_networks.sort
- notifies :restart, resources(:service => "spamassassin")
+ notifies :restart, "service[spamassassin]"
end
service "squid" do
action [ :enable, :start ]
supports :status => true, :restart => true, :reload => true
- subscribes :reload, resources(:template => "/etc/squid/squid.conf")
- subscribes :restart, resources(:template => "/etc/default/squid")
- subscribes :reload, resources(:template => "/etc/resolv.conf")
+ subscribes :reload, "template[/etc/squid/squid.conf]"
+ subscribes :restart, "template[/etc/default/squid]"
+ subscribes :reload, "template[/etc/resolv.conf]"
end
munin_plugin "squid_cache"
owner "root"
group "root"
mode 0644
- notifies :run, resources(:execute => "sysctl")
+ notifies :run, "execute[sysctl]"
end
node[:sysctl].each_value do |group|
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "sysfsutils")
+ notifies :restart, "service[sysfsutils]"
end
revision "v1.2.1"
user "root"
group "root"
- notifies :reload, resources(:service => "apache2")
+ notifies :reload, "service[apache2]"
end
directory "/srv/thinkup.openstreetmap.org/logs" do
group "root"
mode 0644
content thinkup_config
- notifies :reload, resources(:service => "apache2")
+ notifies :reload, "service[apache2]"
end
thinkup_cron = edit_file "/srv/thinkup.openstreetmap.org/extras/cron/config.sample" do |line|
owner "root"
group "root"
mode 0644
- notifies :reload, resources(:service => "apache2")
- notifies :restart, resources(:service => "renderd")
+ notifies :reload, "service[apache2]"
+ notifies :restart, "service[renderd]"
end
remote_directory "/srv/tile.openstreetmap.org/html" do
command "ogr2ogr #{processed} #{original}"
user "tile"
group "tile"
- subscribes :run, resources(:execute => file), :immediately
+ subscribes :run, "execute[#{file}]", :immediately
end
end
command "find #{directory} -type f -iname '*.shp' -print0 | xargs -0 --no-run-if-empty shapeindex --shape_files"
user "tile"
group "tile"
- subscribes :run, resources(:execute => file), :immediately
+ subscribes :run, "execute[#{file}]", :immediately
end
remote_file file do
group "tile"
mode 0644
backup false
- notifies :run, resources(:execute => file), :immediately
- notifies :restart, resources(:service => "renderd")
+ notifies :run, "execute[#{file}]", :immediately
+ notifies :restart, "service[renderd]"
end
end
service "replicate" do
action [ :enable, :start ]
supports :restart => true
- subscribes :restart, resources(:template => "/usr/local/bin/replicate")
- subscribes :restart, resources(:template => "/etc/init.d/replicate")
+ subscribes :restart, "template[/usr/local/bin/replicate]"
+ subscribes :restart, "template[/etc/init.d/replicate]"
end
template "/etc/logrotate.d/replicate" do
cwd rails_directory
user rails_user
group rails_group
- notifies :delete, resources(:file => "#{rails_directory}/public/export/embed.html")
- notifies :touch, resources(:file => "#{rails_directory}/tmp/restart.txt")
+ notifies :delete, "file[#{rails_directory}/public/export/embed.html]"
+ notifies :touch, "file[#{rails_directory}/tmp/restart.txt]"
end
execute "#{rails_directory}/db/migrate" do
cwd rails_directory
user rails_user
group rails_group
- notifies :run, resources(:execute => "#{rails_directory}/public/assets")
+ notifies :run, "execute[#{rails_directory}/public/assets]"
end
execute "#{rails_directory}/Gemfile" do
user "root"
group "root"
if run_migrations
- notifies :run, resources(:execute => "#{rails_directory}/db/migrate")
+ notifies :run, "execute[#{rails_directory}/db/migrate]"
else
- notifies :run, resources(:execute => "#{rails_directory}/public/assets")
+ notifies :run, "execute[#{rails_directory}/public/assets]"
end
- subscribes :run, resources(:gem_package => "bundler#{ruby_version}")
+ subscribes :run, "gem_package[bundler#{ruby_version}]"
end
directory rails_directory do
revision rails_revision
user rails_user
group rails_group
- notifies :run, resources(:execute => "#{rails_directory}/Gemfile")
+ notifies :run, "execute[#{rails_directory}/Gemfile]"
end
directory "#{rails_directory}/tmp" do
group rails_group
mode 0664
variables database_params
- notifies :touch, resources(:file => "#{rails_directory}/tmp/restart.txt")
+ notifies :touch, "file[#{rails_directory}/tmp/restart.txt]"
end
application_yml = edit_file "#{rails_directory}/config/example.application.yml" do |line|
group rails_group
mode 0664
content application_yml
- notifies :touch, resources(:file => "#{rails_directory}/tmp/restart.txt")
+ notifies :touch, "file[#{rails_directory}/tmp/restart.txt]"
end
if params[:piwik_configuration]
group rails_group
mode 0664
content YAML.dump(params[:piwik_configuration])
- notifies :run, resources(:execute => "#{rails_directory}/public/assets")
+ notifies :run, "execute[#{rails_directory}/public/assets]"
end
else
file "#{rails_directory}/config/piwik.yml" do
action :delete
- notifies :run, resources(:execute => "#{rails_directory}/public/assets")
+ notifies :run, "execute[#{rails_directory}/public/assets]"
end
end
File.mtime("#{rails_directory}/lib/quad_tile/quad_tile_so.so") >= File.mtime("#{rails_directory}/lib/quad_tile/quad_tile.c") and
File.mtime("#{rails_directory}/lib/quad_tile/quad_tile_so.so") >= File.mtime("#{rails_directory}/lib/quad_tile/quad_tile.h")
end
- notifies :touch, resources(:file => "#{rails_directory}/tmp/restart.txt")
+ notifies :touch, "file[#{rails_directory}/tmp/restart.txt]"
end
template "/etc/cron.daily/rails-#{name}" do
cwd cgimap_directory
user "rails"
group "rails"
- notifies :run, resources(:execute => "cgimap-build"), :immediate
+ notifies :run, "execute[cgimap-build]", :immediate
end
execute "cgimap-autogen" do
cwd cgimap_directory
user "rails"
group "rails"
- notifies :run, resources(:execute => "cgimap-configure"), :immediate
+ notifies :run, "execute[cgimap-configure]", :immediate
end
git cgimap_directory do
revision "live"
user "rails"
group "rails"
- notifies :run, resources(:execute => "cgimap-autogen"), :immediate
+ notifies :run, "execute[cgimap-autogen]", :immediate
end
if node[:web][:readonly_database_host]
service "cgimap" do
action [ :enable, :start ]
supports :restart => true, :reload => true
- subscribes :restart, resources(:execute => "cgimap-build")
- subscribes :restart, resources(:file => "/etc/init.d/cgimap")
+ subscribes :restart, "execute[cgimap-build]"
+ subscribes :restart, "file[/etc/init.d/cgimap]"
end
end
revision "live"
user "rails"
group "rails"
- notifies :run, resources(:execute => "gpx-import-build"), :immediate
+ notifies :run, "execute[gpx-import-build]", :immediate
end
template "/etc/init.d/gpx-import" do
service "gpx-import" do
action [ :enable, :start ]
supports :restart => true, :reload => true
- subscribes :restart, resources(:execute => "gpx-import-build")
- subscribes :restart, resources(:template => "/etc/init.d/gpx-import")
+ subscribes :restart, "execute[gpx-import-build]"
+ subscribes :restart, "template[/etc/init.d/gpx-import]"
end
end