Originally hosted at Github https://github.com/erlepereira/govhackau2015, have pulled it inside here for now. Why ? well, blame the recent acquisition rumors :) * currently openID on here is not active, it will be shortly. dated: 4 June 2018
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

55 lines
806 B

#!/usr/bin/env bash
#
# neo4j
#
# chkconfig: - 58 48
# description: neo4j
# processname: neo4j
# Source networking configuration
if [ -f /etc/sysconfig/network ]; then source /etc/sysconfig/network; fi
# Exit if networking is not up
[ "$NETWORKING" = "no" ] && exit
start() {
# neo4j wrapper is smart enough to change user and do similar things.
/usr/local/bin/neo4j start
return $?
}
stop() {
/usr/local/bin/neo4j stop
return $?
}
restart() {
stop
start
}
status() {
/usr/local/bin/neo4j status
return $?
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
status)
status $2
;;
*)
echo $"Usage: $0 {start|stop|restart|status [-v]|}"
exit 1
esac
exit $?