Revert restart.sh systemd auto-restart, keep dev setup.sh workflow

This commit is contained in:
nmemmert
2026-06-10 09:35:28 -04:00
parent b40f03846d
commit 91b01c3117
-9
View File
@@ -21,14 +21,5 @@ stop_pid_file() {
stop_pid_file "$ROOT_DIR/.api.pid" "API server"
stop_pid_file "$ROOT_DIR/.vite.pid" "Vite server"
# ── If installed as a systemd service, restart that instead ──────────────────
if command -v systemctl >/dev/null 2>&1 && systemctl list-unit-files study-app.service >/dev/null 2>&1; then
echo "Found study-app systemd service — restarting it..."
sudo systemctl restart study-app
sleep 1
systemctl status study-app --no-pager -l
exit 0
fi
echo "Restarting via setup.sh..."
exec "$ROOT_DIR/setup.sh"