# Copy to /etc/systemd/system/rotten-bot-dashboard.service, then: # sudo systemctl daemon-reload # sudo systemctl enable --now rotten-bot-dashboard # # Path here matches the actual deployed location: /var/www/html/bot # Adjust WorkingDirectory/EnvironmentFile if that ever changes. [Unit] Description=rotten-bot web dashboard After=network.target [Service] WorkingDirectory=/var/www/html/bot ExecStart=/usr/bin/node dashboard/server.js Restart=always User=www-data EnvironmentFile=/var/www/html/bot/.env [Install] WantedBy=multi-user.target