Deploy FABRIC web dashboard as a systemd user service that starts on boot and auto-restarts on crash. Includes service.sh management script for start/stop/restart/deploy operations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
341 B
Desktop File
17 lines
341 B
Desktop File
[Unit]
|
|
Description=FABRIC Web Dashboard
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/home/coding/FABRIC
|
|
ExecStart=/usr/bin/node dist/cli.js web --port 3000
|
|
Restart=always
|
|
RestartSec=5
|
|
Environment=NODE_ENV=production
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=fabric-web
|
|
|
|
[Install]
|
|
WantedBy=default.target
|