[Unit]
Description=LunarFront API Server
After=network.target postgresql.service

[Service]
Type=simple
User=ubuntu
WorkingDirectory=/opt/lunarfront/packages/backend
EnvironmentFile=/opt/lunarfront/.env
ExecStart=/home/ubuntu/.bun/bin/bun run src/main.ts
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=lunarfront

[Install]
WantedBy=multi-user.target
