Permalink
Browse files

Set permissions allowing owning user to restart

  • Loading branch information...
1 parent 6b4708a commit baa7a06c6f42582db9735dd79b5cc7d6bb20bf6e @aussiegeek aussiegeek committed with jtimberman Nov 14, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 definitions/runit_service.rb
@@ -41,6 +41,29 @@
action :create
end
+ directory sv_dir_name + "/supervise" do
+ owner params[:owner]
+ group params[:group]
+ mode 0755
+ action :create
+ end
+
+ file sv_dir_name + "/supervise/ok" do
+ owner params[:owner]
+ group params[:group]
+ mode 0644
+ action :create
+ only_if { File.exists? sv_dir_name + "/supervise/ok" }
+ end
+
+ file sv_dir_name + "/supervise/control" do
+ owner params[:owner]
+ group params[:group]
+ mode 0600
+ action :create
+ only_if { File.exists? sv_dir_name + "/supervise/control" }
+ end
+
unless params[:nolog]
directory "#{sv_dir_name}/log" do
owner params[:owner]

0 comments on commit baa7a06

Please sign in to comment.