lib/right_chimp/daemon/ChimpDaemon.rb in right_chimp-1.0.8 vs lib/right_chimp/daemon/ChimpDaemon.rb in right_chimp-1.0.9
- old
+ new
@@ -70,10 +70,10 @@
when '--quiet', '-q'
@quiet = true
when '--port', '-p'
@port = arg
when '--exit', '-x'
- uri = "http://localhost:9055/admin"
+ uri = "http://localhost:#{@port}/admin"
response = RestClient.post uri, { 'shutdown' => true }.to_yaml
exit 0
end
end
rescue GetoptLong::InvalidOption => ex