Initial commit - Phase 3/4
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
32
systemd/dangerous-pi-frontend.service
Normal file
32
systemd/dangerous-pi-frontend.service
Normal file
@@ -0,0 +1,32 @@
|
||||
[Unit]
|
||||
Description=Dangerous Pi Frontend Service
|
||||
Documentation=https://github.com/grizmin/dangerous-pi
|
||||
After=network.target dangerous-pi.service
|
||||
Wants=dangerous-pi.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=dt
|
||||
Group=dt
|
||||
WorkingDirectory=/opt/dangerous-pi/app/frontend
|
||||
Environment="NODE_ENV=production"
|
||||
Environment="PORT=3000"
|
||||
ExecStart=/usr/bin/node node_modules/@remix-run/serve/dist/cli.js build/server/index.js
|
||||
|
||||
# Restart policy
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StartLimitBurst=5
|
||||
StartLimitInterval=60
|
||||
|
||||
# Resource limits (lighter than backend)
|
||||
MemoryMax=256M
|
||||
CPUQuota=50%
|
||||
|
||||
# Graceful shutdown
|
||||
TimeoutStopSec=10
|
||||
KillMode=mixed
|
||||
KillSignal=SIGTERM
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user