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