iyyov 1.0.1-java → 1.0.2-java

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.0.2 (2010-3-14)
2
+ * Include a host-based.rb selection config example.
3
+ * Futher README.rdoc improvements.
4
+ * Fix test/example version specifiers for hashdot-test-daemon "~> 1.0"
5
+ to account for 1.0.0, 1.1.0.
6
+
1
7
  === 1.0.1 (2010-3-13)
2
8
  * Fix dependencies
3
9
  * Cleanup and add config examples to gem, including init.d and crontab
data/Manifest.txt CHANGED
@@ -17,6 +17,7 @@ config/async.rb
17
17
  config/crontab
18
18
  config/jobs.rb
19
19
  config/load-all.rb
20
+ config/host-based.rb
20
21
  config/init.d/iyyov
21
22
  test/jobs-bad.rb
22
23
  test/jobs-dupe.rb
data/README.rdoc CHANGED
@@ -33,7 +33,7 @@ configurations. Sample jobs.rb configuration:
33
33
 
34
34
  c.define_daemon do |d|
35
35
  d.name = "hashdot-test-daemon"
36
- d.version = "~> 1.0.0"
36
+ d.version = "~> 1.0"
37
37
  d.log_rotate do |l|
38
38
  l.max_size_mb = 256
39
39
  end
@@ -62,10 +62,9 @@ based on the following conventions:
62
62
  init script with the same name and provided by the same named gem
63
63
  and highest matching version.
64
64
  * In any case, the Daemon.exe_path should itself demonize and create
65
- a pid in order to be monitored.
66
- {Hashdot}[http://hashdot.sourceforge.net/] provides one reliable
67
- means of achieving this. Its could also be achieved via a bash
68
- script.
65
+ a PID file in order to be monitored.
66
+ {Hashdot}[http://hashdot.sourceforge.net/] provides reliable
67
+ means of achieving this.
69
68
 
70
69
  == Setup
71
70
 
@@ -75,9 +74,12 @@ achieve this:
75
74
 
76
75
  * UNIX init.d script (a CentOS/Fedora version is provided in gem or source
77
76
  config/init.d directory)
78
- * inittab or upstart (which also supports monitoring iyyov/restarting itself)
77
+ * inittab or upstart (which also supports monitoring/restarting iyyov itself)
79
78
  * Crontab (an example is provided at gem or source config/crontab)
80
79
 
80
+ Iyyov itself contains a Hashdot annotated init/iyyov-daemon script
81
+ used by the above provided examples.
82
+
81
83
  == License
82
84
 
83
85
  Copyright (c) 2010 David Kellum
data/Rakefile CHANGED
@@ -32,7 +32,7 @@ t.specify do |h|
32
32
  [ 'rjack-logback', '~> 0.9.18' ],
33
33
  [ 'logrotate', '= 1.2.1' ] ]
34
34
  h.extra_dev_deps += [ [ 'minitest', '~> 1.5.0' ],
35
- [ 'hashdot-test-daemon', '>= 1.0.0' ] ]
35
+ [ 'hashdot-test-daemon', '~> 1.0' ] ]
36
36
  end
37
37
 
38
38
  # Version/date consistency checks:
data/config/crontab CHANGED
@@ -1,2 +1,2 @@
1
1
  # PATH=/opt/bin
2
- */1 * * * * cd /opt/var/iyyov && /opt/jruby/gems/gems/iyyov-1.0.1-java/init/iyyov-daemon jobs.rb
2
+ */1 * * * * cd /opt/var/iyyov && /opt/jruby/gems/gems/iyyov-1.0.2-java/init/iyyov-daemon jobs.rb
@@ -0,0 +1,15 @@
1
+ Iyyov.context do |c|
2
+
3
+ hostname = `hostname -s`.strip
4
+ SLF4J[ File.basename( __FILE__ ) ].info( "Setup services for [#{hostname}]." )
5
+
6
+ case hostname
7
+
8
+ when /^server-[012]$/
9
+ c.define_daemon { |d| d.name = "widget-factory" }
10
+
11
+ when 'server-3'
12
+ c.define_daemon { |d| d.name = "assembly-line" }
13
+
14
+ end
15
+ end
data/config/init.d/iyyov CHANGED
@@ -3,7 +3,7 @@
3
3
  # iyyov Startup script for Iyyov monitoring daemon
4
4
  #
5
5
  # chkconfig: 2345 88 12
6
- # description: Iyyov daemon
6
+ # description: Iyyov monitoring daemon
7
7
  # processname: iyyov-daemon
8
8
  # config: /opt/var/iyyov/jobs.rb
9
9
 
@@ -14,7 +14,7 @@
14
14
  gem_home="/opt/jruby/gems"
15
15
 
16
16
  # (Exact) Gem version of iyyov to run
17
- version="1.0.1"
17
+ version="1.0.2"
18
18
 
19
19
  # User to run the daemon as (should own rundir)
20
20
  user="iyyov"
data/config/jobs.rb CHANGED
@@ -2,7 +2,7 @@ Iyyov.context do |c|
2
2
 
3
3
  c.define_daemon do |d|
4
4
  d.name = "hashdot-test-daemon"
5
- d.version = "~> 1.0.0"
5
+ d.version = "~> 1.0"
6
6
  d.stop_on_exit = true
7
7
  d.stop_delay = 2.0
8
8
  d.log_rotate
data/init/iyyov-daemon CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  require 'rubygems'
26
26
 
27
- gem( "iyyov", "= 1.0.1" )
27
+ gem( "iyyov", "= 1.0.2" )
28
28
 
29
29
  require 'rjack-logback'
30
30
  RJack::Logback.config_console( :full => true, :thread => true )
data/lib/iyyov/base.rb CHANGED
@@ -16,5 +16,5 @@
16
16
 
17
17
  module Iyyov
18
18
  # Iyyov version
19
- VERSION = '1.0.1'
19
+ VERSION = '1.0.2'
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iyyov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: java
6
6
  authors:
7
7
  - David Kellum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-12 23:00:00 -08:00
12
+ date: 2010-03-13 23:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -58,9 +58,9 @@ dependencies:
58
58
  version_requirement:
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
- version: 1.0.0
63
+ version: "1.0"
64
64
  version:
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: rjack-tarpit
@@ -103,6 +103,7 @@ files:
103
103
  - config/crontab
104
104
  - config/jobs.rb
105
105
  - config/load-all.rb
106
+ - config/host-based.rb
106
107
  - config/init.d/iyyov
107
108
  - test/jobs-bad.rb
108
109
  - test/jobs-dupe.rb