apnd 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -0
- data/bin/apnd +5 -0
- data/lib/apnd/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -37,6 +37,7 @@ utility is used to start APND.
|
|
37
37
|
--daemon-port [PORT] Run APND on PORT (default is 22195)
|
38
38
|
--daemon-bind [ADDRESS] Bind APND to ADDRESS (default is 0.0.0.0)
|
39
39
|
--daemon-log-file [PATH] PATH to APND log file (default is /var/log/apnd.log)
|
40
|
+
--daemon-timer [SECONDS] Set APND queue refresh time to SECONDS (default is 30)
|
40
41
|
--foreground Run APND in foreground without daemonizing
|
41
42
|
|
42
43
|
Help:
|
data/bin/apnd
CHANGED
@@ -50,6 +50,10 @@ opts = OptionParser.new do |opt|
|
|
50
50
|
options[:daemon_log_file] = log
|
51
51
|
end
|
52
52
|
|
53
|
+
opt.on('--daemon-timer [SECONDS]', 'Set APND queue refresh time to SECONDS (default is 30)') do |seconds|
|
54
|
+
options[:daemon_timer] = seconds.to_i
|
55
|
+
end
|
56
|
+
|
53
57
|
opt.on('--foreground', 'Run APND in foreground without daemonizing') do
|
54
58
|
options[:foreground] = true
|
55
59
|
end
|
@@ -94,6 +98,7 @@ APND.configure do |config|
|
|
94
98
|
config.daemon.bind = options[:daemon_bind] if options[:daemon_bind]
|
95
99
|
config.daemon.port = options[:daemon_port] if options[:daemon_port]
|
96
100
|
config.daemon.log_file = options[:daemon_log_file] if options[:daemon_log_file]
|
101
|
+
config.daemon.timer = options[:daemon_timer] if options[:daemon_timer]
|
97
102
|
end
|
98
103
|
|
99
104
|
if APND.settings.apple.cert.nil?
|
data/lib/apnd/version.rb
CHANGED