# Review/install by 总工 only. Single worker; never share DB with demo or tests. [Unit] Description=CyberGril R1 persistent text API After=network-online.target Wants=network-online.target [Service] Type=simple User=cybergril WorkingDirectory=/opt/cybergril-api/current Environment=CYBERGRIL_DB=/opt/cybergril-data/cybergril.db Environment=CYBERGRIL_MODELS=/opt/cybergril-api/current/config/models.yaml Environment=CYBERGRIL_WEB=/opt/cybergril-api/current/web/dist Environment=CYBERGRIL_HOST=0.0.0.0 Environment=CYBERGRIL_PORT=8310 ExecStart=/opt/cybergril-api/current/.venv/bin/python -m cybergril.api Restart=on-failure RestartSec=3 TimeoutStopSec=15 UMask=0077 NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/opt/cybergril-data [Install] WantedBy=multi-user.target