If you have an important service, than you not want to monitor & operate those service 24/7 you can guard against catastrophic crashes by doing auto-restart.
nano /lib/systemd/system/nginx.service
[Service]
Restart=on-failure
RestartSec=5s
systemctl daemon-reload