Learn Linux and systemd: processes and signals, unit files, systemctl and journalctl, targets, timers, resource limits and service hardening.
Run your service as a unit file, then systemctl status app and journalctl -u app -f. Most production mysteries end in these two commands.