# TEMPLATE, not run with the real model: user unit for the HTTP gateway (OpenAI Responses on loopback). # The daemon reconnects to the engine by itself; it never loads a model. [Unit] Description=Leleka gateway (POST /v1/responses on loopback) After=leleka-inference.service [Service] Type=exec EnvironmentFile=@STATE@/runtime.env UMask=0077 NoNewPrivileges=yes Restart=on-failure RestartSec=2 # The daemon drains streams (10 s) on SIGINT only; SIGTERM would cut live SSE without a terminal event. KillSignal=SIGINT TimeoutStopSec=20 ExecStart=@PREFIX@/leleka-daemon --config @STATE@/daemon.json [Install] WantedBy=default.target