Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

COOK-814, add pill template files and template resources

  • Loading branch information...
commit 9fedba3916b244a9bd316889b32a8d0d292f89ea 1 parent 1a69cd1
@jtimberman jtimberman authored
View
5 djbdns/recipes/axfr.rb
@@ -44,7 +44,10 @@
end
runit_service "axfrdns"
when "bluepill"
- bluepill_service "axfrdns" do
+ template "#{node['bluepill']['conf_dir']}/axfrdns.pill" do
+ source "axfrdns.pill.erb"
+ mode 0644
+ end bluepill_service "axfrdns" do
action [:enable,:load,:start]
end
when "daemontools"
View
4 djbdns/recipes/internal_server.rb
@@ -66,6 +66,10 @@
end
runit_service "tinydns-internal"
when "bluepill"
+ template "#{node['bluepill']['conf_dir']}/tinydns-internal.pill" do
+ source "tinydns-internal.pill.erb"
+ mode 0644
+ end
bluepill_service "tinydns-internal" do
action [:enable,:load,:start]
end
View
4 djbdns/recipes/server.rb
@@ -42,6 +42,10 @@
end
runit_service "tinydns"
when "bluepill"
+ template "#{node['bluepill']['conf_dir']}/tinydns.pill" do
+ source "tinydns.pill.erb"
+ mode 0644
+ end
bluepill_service "tinydns" do
action [:enable,:load,:start]
end
View
13 djbdns/templates/default/axfrdns.pill.erb
@@ -0,0 +1,13 @@
+Bluepill.application("axfrdns") do |app|
+
+ app.process("axfrdns") do |process|
+ process.pid_file = "/var/run/axfrdns.pid"
+ process.start_command = "<%= node[:djbdns][:axfrdns_dir] %>/run"
+ process.working_dir = "<%= node[:djbdns][:axfrdns_dir] %>"
+ process.uid = process.gid = "tinydns"
+ process.start_grace_time = 5.seconds
+ process.stop_grace_time = 5.seconds
+ process.restart_grace_time = 30.seconds
+ end
+
+end
View
13 djbdns/templates/default/tinydns.pill.erb
@@ -0,0 +1,13 @@
+Bluepill.application("tinydns") do |app|
+
+ app.process("tinydns") do |process|
+ process.pid_file = "/var/run/tinydns.pid"
+ process.start_command = "<%= node[:djbdns][:tinydns_dir] %>/run"
+ process.working_dir = "<%= node[:djbdns][:tinydns_dir] %>"
+ process.uid = process.gid = "tinydns"
+ process.start_grace_time = 5.seconds
+ process.stop_grace_time = 5.seconds
+ process.restart_grace_time = 30.seconds
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.