Skip to content

Commit

Permalink
fixing issue #81
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Apr 11, 2013
1 parent 54632ae commit f800179
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/neography/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,30 @@
puts "Starting Neo4j..."
if OS::Underlying.windows?
if %x[reg query "HKU\\S-1-5-19"].size > 0
%x[neo4j/bin/Neo4j.bat start] #start service
value = %x[neo4j/bin/Neo4j.bat start] #start service
else
puts "Starting Neo4j directly, not as a service."
%x[neo4j/bin/Neo4j.bat]
value = %x[neo4j/bin/Neo4j.bat]
end
else
%x[neo4j/bin/neo4j start]
value = %x[neo4j/bin/neo4j start]
end
puts value
end

desc "Stop the Neo4j Server"
task :stop do
puts "Stopping Neo4j..."
if OS::Underlying.windows?
if %x[reg query "HKU\\S-1-5-19"].size > 0
%x[neo4j/bin/Neo4j.bat stop] #stop service
value = %x[neo4j/bin/Neo4j.bat stop] #stop service
else
puts "You do not have administrative rights to stop the Neo4j Service"
end
else
%x[neo4j/bin/neo4j stop]
value = %x[neo4j/bin/neo4j stop]
end
puts value
end

desc "Restart the Neo4j Server"
Expand Down

0 comments on commit f800179

Please sign in to comment.