diff --git a/restart.sh b/restart.sh index 2f7e934..c5fe558 100755 --- a/restart.sh +++ b/restart.sh @@ -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" \ No newline at end of file