ansible-roles/library/roles/parse_server/templates/parse_server_dashboard.upst...

16 lines
513 B
Django/Jinja

description "Parse server dashboard"
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-dashboard.env
export PARSE_DASHBOARD_TRUST_PROXY
export MOUNT_PATH
exec /usr/bin/parse-dashboard --config {{ parse_server_config_dir }}/parse-dashboard-config.json > {{ parse_server_logs_dir }}/parse_server_dashboard_startup.log 2>&1
end script