blob: 846a0015ccfdc71fd62bbced9cd8a5cf4408f96e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
extra_commands="info"
NEO4J="/opt/bin/neo4j"
depend() {
need net
}
start() {
ebegin "Starting neo4j"
start-stop-daemon --start --quiet --exec ${NEO4J} start
eend $?
}
stop() {
ebegin "Stopping neo4j"
${NEO4J} stop >/dev/null 2>&1
eend $?
}
restart() {
ebegin "Restarting neo4j"
${NEO4J} restart >/dev/null 2>&1
eend $?
}
info() {
${NEO4J} info
}
|