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 +4 -0
- data/init.d/trinidad.erb +1 -1
- data/lib/trinidad_init_services/configuration.rb +10 -3
- data/lib/trinidad_init_services.rb +1 -1
- data/trinidad-libs/prunsrv_amd64.exe +0 -0
- data/trinidad-libs/prunsrv_ia64.exe +0 -0
- data/trinidad_init_services.gemspec +4 -3
- metadata +7 -6
- data/trinidad-libs/prunsrv.exe +0 -0
data/History.txt
CHANGED
data/init.d/trinidad.erb
CHANGED
@@ -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="#{
|
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
|
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.
|
17
|
-
s.date = '2011-
|
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/
|
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.
|
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-
|
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/
|
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:
|
83
|
+
version: 1.3.1
|
83
84
|
requirements: []
|
84
85
|
|
85
86
|
rubyforge_project: trinidad_init_services
|
data/trinidad-libs/prunsrv.exe
DELETED
Binary file
|