ansible-roles/library/roles/parse_server/templates/parse_server.upstart.j2

21 lines
591 B
Django/Jinja

description "Parse server"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [016]
respawn
respawn limit 10 5
setuid {{ parse_server_user }}
setgid {{ parse_server_user }}
script
. {{ parse_server_config_dir }}/parse-server.env
export MASTER_KEY
export APPLICATION_ID
export LOG_LEVEL
export PARSE_SERVER_LOGS_FOLDER
export JSON_LOGS
export VERBOSE
export DATABASE_URI
exec /usr/bin/parse-server --appId "$APPLICATION_ID" --masterKey "$MASTER_KEY" --databaseURI $DATABASE_URI > {{ parse_server_logs_dir }}/parse_server_startup.log 2>&1
end script