[Unit] Description=Cresc diff worker supervisor After=network-online.target Wants=network-online.target PartOf=cresc.target ConditionPathExists=!/etc/cresc/worker-disabled [Service] Type=simple User=root WorkingDirectory=/root Environment=NODE_ENV=production Environment=WORKER_CONCURRENCY=1 Environment=WORKER_CACHE_DIR=/var/cache/cresc-worker Environment=DIAGNOSTIC_SOCKET_PATH=/run/cresc-worker/metrics.sock ExecStart=/opt/cresc/runtime/bun --env-file=/root/.env.prod /opt/cresc/current/lib/worker.js Restart=always RestartSec=3 TimeoutStopSec=70 KillMode=control-group OOMPolicy=stop OOMScoreAdjust=500 RuntimeDirectory=cresc-worker RuntimeDirectoryMode=0750 # Safe fallback; overridden by the host-sized systemd drop-in. MemoryHigh=512M MemoryMax=768M MemorySwapMax=512M LimitNOFILE=65536 SyslogIdentifier=cresc-worker [Install] WantedBy=cresc.target