From 426ea014f57bf43d41cf0430cf72d534f4b8592e Mon Sep 17 00:00:00 2001 From: Leonardo Martins Date: Mon, 23 Apr 2012 15:57:05 -0300 Subject: Added init script to dev-db/neo4j-community --- dev-db/neo4j-community/files/neo4j.init | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dev-db/neo4j-community/files/neo4j.init (limited to 'dev-db/neo4j-community/files') diff --git a/dev-db/neo4j-community/files/neo4j.init b/dev-db/neo4j-community/files/neo4j.init new file mode 100644 index 0000000..ee577f0 --- /dev/null +++ b/dev-db/neo4j-community/files/neo4j.init @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net +} + +start() { + ebegin "Starting neo4j" + start-stop-daemon --start --quiet --exec /opt/bin/neo4j -- start >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping neo4j" + /opt/bin/neo4j stop >/dev/null 2>&1 + eend $? +} -- cgit v1.2.3-65-gdbad