Skip to content

Commit b47ea38

Browse files
Monty Williamsottobehrens
Monty Williams
authored andcommitted
Don't start netldi if one is already running
1 parent 85f8bbc commit b47ea38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gemstone_installation.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def set_gemstone_installation_environment
3333

3434
def stones
3535
Dir.glob("#{config_directory}/*").collect do | full_filename |
36-
File.basename(full_filename).split(".conf").first
36+
File.basename(full_filename).split(".conf").first
3737
end
3838
end
3939

@@ -52,7 +52,9 @@ def stopnetldi
5252
end
5353

5454
def startnetldi
55-
gs_sh "startnetldi -g -a #{ENV['USER']} | grep Info].*server"
55+
unless netldi_running?
56+
gs_sh "startnetldi -g -a #{ENV['USER']} | grep Info].*server"
57+
end
5658
end
5759

5860
def netldi_running?

0 commit comments

Comments
 (0)