Permalink
Browse files

Add node attributes that control whether Neo4J is disabled on boot, a…

… PoC to show Josh
  • Loading branch information...
1 parent 75f99b1 commit 5c9cf3cbf373487cf2a8dcc711bad5fb80ff6149 @michaelklishin michaelklishin committed Oct 3, 2012
@@ -36,5 +36,8 @@
:version => "0.9-SNAPSHOT",
:md5 => "65e6d30e856f191a20f3f6e78eaaf5a7"
}
+ },
+ :service => {
+ :enabled => false
}
}
@@ -156,6 +156,9 @@
service "neo4j" do
supports :start => true, :stop => true, :restart => true
- # disable on boot, intentionally. MK.
- action [:disable]
+ if node.neo4j.server.service.enabled
+ action [:enable]
+ else
+ action [:disable]
+ end
end

0 comments on commit 5c9cf3c

Please sign in to comment.