trinidad_init_services 1.0.0 → 1.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.1.0.pre (2011-09-30)
2
+
3
+ * Load prunsrv on Windows according with the architecture
4
+
1
5
  == 1.0.0 (2011-06-11)
2
6
 
3
7
  * Rebranded gem
data/init.d/trinidad.erb CHANGED
@@ -1,4 +1,4 @@
1
- #! /bin/sh
1
+ #!/usr/bin/env bash
2
2
  # Generic script for running ruby scripts as daemons using
3
3
  # jsvc and a java class to control the daemon.
4
4
  #
@@ -76,10 +76,8 @@ module Trinidad
76
76
  end
77
77
 
78
78
  def configure_windows_service
79
- prunsrv = File.join(@jars_path, 'prunsrv.exe')
80
-
81
79
  command = %Q{//IS//Trinidad --DisplayName="#{@trinidad_name}" \
82
- --Install="#{prunsrv}" --Jvm=auto --StartMode=jvm --StopMode=jvm \
80
+ --Install="#{prunsrv_path}" --Jvm=auto --StartMode=jvm --StopMode=jvm \
83
81
  --StartClass=com.msp.procrun.JRubyService --StartMethod=start \
84
82
  --StartParams="#{@trinidad_daemon_path};#{@trinidad_options.join(";")}" \
85
83
  --StopClass=com.msp.procrun.JRubyService --StopMethod=stop --Classpath="#{@classpath.join(";")}" \
@@ -112,11 +110,20 @@ module Trinidad
112
110
  RbConfig::CONFIG['host_os'] =~ /darwin/i
113
111
  end
114
112
 
113
+ def ia64?
114
+ RbConfig::CONFIG['arch'] =~ /i686|ia64/i
115
+ end
116
+
115
117
  def jsvc_path
116
118
  jsvc = 'jsvc_' + (macosx? ? 'darwin' : 'linux')
117
119
  File.join(@jars_path, jsvc)
118
120
  end
119
121
 
122
+ def prunsrv_path
123
+ prunsrv = 'prunsrv_' + (ia64? 'ia64' : 'amd64') + '.exe'
124
+ File.join(@jars_path, prunsrv)
125
+ end
126
+
120
127
  def ask_path(question, default = nil)
121
128
  File.expand_path(ask(question, default))
122
129
  end
@@ -3,7 +3,7 @@ require 'trinidad'
3
3
 
4
4
  module Trinidad
5
5
  module Daemon
6
- VERSION = '1.0.0'
6
+ VERSION = '1.1.0.pre'
7
7
 
8
8
  def init
9
9
  end
Binary file
Binary file
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'trinidad_init_services'
16
- s.version = '1.0.0'
17
- s.date = '2011-07-12'
16
+ s.version = '1.1.0.pre'
17
+ s.date = '2011-09-30'
18
18
  s.rubyforge_project = 'trinidad_init_services'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -63,7 +63,8 @@ Gem::Specification.new do |s|
63
63
  trinidad-libs/jruby-jsvc.jar
64
64
  trinidad-libs/jsvc_darwin
65
65
  trinidad-libs/jsvc_linux
66
- trinidad-libs/prunsrv.exe
66
+ trinidad-libs/prunsrv_amd64.exe
67
+ trinidad-libs/prunsrv_ia64.exe
67
68
  trinidad_init_services.gemspec
68
69
  ]
69
70
  # = MANIFEST =
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trinidad_init_services
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.0.0
4
+ prerelease: 6
5
+ version: 1.1.0.pre
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Calavera
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-12 00:00:00 +02:00
13
+ date: 2011-09-30 00:00:00 +02:00
14
14
  default_executable: trinidad_daemon_install
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -46,7 +46,8 @@ files:
46
46
  - trinidad-libs/jruby-jsvc.jar
47
47
  - trinidad-libs/jsvc_darwin
48
48
  - trinidad-libs/jsvc_linux
49
- - trinidad-libs/prunsrv.exe
49
+ - trinidad-libs/prunsrv_amd64.exe
50
+ - trinidad-libs/prunsrv_ia64.exe
50
51
  - trinidad_init_services.gemspec
51
52
  has_rdoc: true
52
53
  homepage: http://github.com/calavera/trinidad_daemon
@@ -77,9 +78,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
78
  required_rubygems_version: !ruby/object:Gem::Requirement
78
79
  none: false
79
80
  requirements:
80
- - - ">="
81
+ - - ">"
81
82
  - !ruby/object:Gem::Version
82
- version: "0"
83
+ version: 1.3.1
83
84
  requirements: []
84
85
 
85
86
  rubyforge_project: trinidad_init_services
Binary file