mqsink 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/mqsinkd +11 -0
- metadata +1 -1
data/bin/mqsinkd
CHANGED
@@ -9,6 +9,17 @@ def local_boot
|
|
9
9
|
system("touch /etc/mqsink/acl.conf")
|
10
10
|
system("touch /etc/mqsink/classifiers.conf")
|
11
11
|
system("touch /etc/mqsink/mqsink.json")
|
12
|
+
base_config = { :localhost => '0.0.0.0', :localport => 514, :amqp_server => '127.0.0.1', :static_queue => 'test_queue', :mode => 'raw',
|
13
|
+
:firewall => 'on', :fw_file => '/etc/mqsink/acl.conf', :debug => 'off', :classifiers => '/etc/mqsink/classifiers.conf' }
|
14
|
+
File.open('/etc/mqsink/mqsink.json', 'w+') do |wr|
|
15
|
+
wr.puts JSON.dump base_config
|
16
|
+
end
|
17
|
+
File.open('/etc/mqsink/acl.conf', 'w+') do |wr|
|
18
|
+
wr.puts '0.0.0.0'
|
19
|
+
end
|
20
|
+
File.open('/etc/mqsink/classifiers.conf', 'w+') do |wr|
|
21
|
+
wr.puts '.*'
|
22
|
+
end
|
12
23
|
end
|
13
24
|
end
|
14
25
|
|