source "init.gpx.erb"
owner "root"
group "root"
- mode 0755
+ mode 0o755
variables :gpx_directory => gpx_directory,
:pid_directory => pid_directory,
:log_directory => log_directory,
- :database_host => node[:web][:database_host],
+ :database_host => node[:web][:database_host],
:database_name => "openstreetmap",
:database_username => "gpximport",
:database_password => db_passwords["gpximport"]
end
else
service "gpx-import" do
- action [ :enable, :start ]
+ action [:enable, :start]
supports :restart => true, :reload => true
subscribes :restart, "execute[gpx-import-build]"
subscribes :restart, "template[/etc/init.d/gpx-import]"