Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add the home dir to the generated config

  • Loading branch information...
commit a0c8af2936ac141d5773fb909deb9795d70cb258 1 parent 7d9c936
@Sutto authored
Showing with 4 additions and 3 deletions.
  1. +3 −2 cookbooks/default.rb
  2. +1 −1  templates/default/service.conf.erb
View
5 cookbooks/default.rb
@@ -42,8 +42,9 @@
group "root"
variables({
:port => config['port'],
- :user => config['user'],
- :group => config['group']
+ :user => user_name,
+ :group => group_name,
+ :home => home_dir
})
end
View
2  templates/default/service.conf.erb
@@ -9,5 +9,5 @@ respawn limit 10 5
setuid <%= @user %>
setgid <%= @group %>
-chdir /path/to/project/directory
+chdir <%= @home %>
exec twistd --syslog -n -r epoll web --class=pyapns.server.APNSServer --port=<%= @port %>
Please sign in to comment.
Something went wrong with that request. Please try again.