description "dynamodb-local-server"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
umask 022
chroot /
chdir /
#limit msgqueue <softlimit> <hardlimit>
#limit nice <softlimit> <hardlimit>
#limit rtprio <softlimit> <hardlimit>
#limit sigpending <softlimit> <hardlimit>
setuid root
setgid root
script
# When loading default and sysconfig files, we use `set -a` to make
# all variables automatically into environment variables.
set -a
[ -r /etc/default/dynamodb-local-server ] && . /etc/default/dynamodb-local-server
[ -r /etc/sysconfig/dynamodb-local-server ] && . /etc/sysconfig/dynamodb-local-server
set +a
exec /usr/local/bin/dynamodb-local
end script