[Unit]
Description=BooControl fleet cockpit service
After=network-online.target postgresql.service
Wants=network-online.target

[Service]
Type=simple
User=samkintop
Group=samkintop
WorkingDirectory=/home/samkintop/opt/boocode/apps/control
# Run the built JS directly (boocoder.service pattern); pnpm/global path is not stable.
Environment=PATH=/home/samkintop/.nvm/versions/node/v24.15.0/bin:/home/samkintop/.local/bin:/usr/local/bin:/usr/bin:/bin
ExecStart=/home/samkintop/.nvm/versions/node/v24.15.0/bin/node /home/samkintop/opt/boocode/apps/control/dist/index.js
Restart=on-failure
RestartSec=5
EnvironmentFile=/home/samkintop/opt/boocode/apps/control/.env.host

[Install]
WantedBy=multi-user.target
