sapoku 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/sapoku.rb +2 -2
  2. metadata +1 -1
data/lib/sapoku.rb CHANGED
@@ -61,6 +61,7 @@ class Tadpole
61
61
  output += "Creating nginx configuration file"
62
62
  create_nginx_config
63
63
  output += "Rehashing nginx configuration"
64
+ rehash_nginx
64
65
  return output
65
66
  end
66
67
 
@@ -107,9 +108,8 @@ class Tadpole
107
108
  end
108
109
 
109
110
  # reload nginx configuration
110
- # TODO: send reload signal instead
111
111
  def rehash_nginx
112
- `sudo /etc/init.d/nginx restart`
112
+ `sudo kill -HUP $(cat /opt/nginx/logs/nginx.pid)`
113
113
  end
114
114
 
115
115
  # generate a new config file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: