description "dynamodb-local-server"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
umask 022
chroot /
chdir /
#limit core <softlimit> <hardlimit>
#limit cpu <softlimit> <hardlimit>
#limit data <softlimit> <hardlimit>
#limit fsize <softlimit> <hardlimit>
#limit memlock <softlimit> <hardlimit>
#limit msgqueue <softlimit> <hardlimit>
#limit nice <softlimit> <hardlimit>
#limit nofile <softlimit> <hardlimit>
#limit nproc <softlimit> <hardlimit>
#limit rss <softlimit> <hardlimit>
#limit rtprio <softlimit> <hardlimit>
#limit sigpending <softlimit> <hardlimit>
#limit stack <softlimit> <hardlimit>
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 chroot --userspec root:root / /usr/local/bin/dynamodb-local >> /var/log/dynamodb-local-server-stdout.log 2>> /var/log/dynamodb-local-server-stderr.log
end script