[Unit]
Description=Secondary School Grade Archive
After=network.target postgresql.service
Wants=postgresql.service

[Service]
Type=simple
WorkingDirectory=/opt/secondary-school-grade-archive
ExecStart=/opt/secondary-school-grade-archive/deploy/start.sh
Restart=always
RestartSec=5
TimeoutStartSec=120
EnvironmentFile=-/opt/secondary-school-grade-archive/.env

[Install]
WantedBy=multi-user.target
