#!/bin/sh
exec 2>&1
# We have to source the profile to get java in our path
. /etc/profile
[ -f ./conf ] && . ./conf
DAEMON=${DAEMON:-server} # Set to dserver in conf for distributed server
exec chpst -u orientdb:orientdb /usr/lib/orientdb/bin/${DAEMON}.sh $OPTS
