# Supervised replacement for run.sh's nohup (crash -> auto-restart). # Install (then stop the run.sh instance: pkill -f 'uvicorn .*app:app'): # sudo ln -s /home/jozamudi/code/ani-cli-front-end/ani-web.service /etc/systemd/system/ # sudo systemctl daemon-reload && sudo systemctl enable --now ani-web [Unit] Description=ani-web (FastAPI anime front-end) After=network-online.target [Service] WorkingDirectory=/home/jozamudi/code/ani-cli-front-end Environment=ANIWEB_SECURE=1 ExecStart=/home/jozamudi/code/ani-cli-front-end/.venv/bin/python -m uvicorn server.app:app --host 0.0.0.0 --port 8321 Restart=always RestartSec=2 [Install] WantedBy=multi-user.target