# Copy to /etc/systemd/system/source.service, then: # sudo systemctl daemon-reload # sudo systemctl enable --now source # # This is the actual Discord gateway process (src/index.js) - separate from # source-dashboard.service, which only runs the web admin panel. # Path matches the deployed location: /var/www/html/bot [Unit] Description=source Discord gateway process After=network.target [Service] WorkingDirectory=/var/www/html/bot ExecStart=/usr/bin/node src/index.js Restart=always User=www-data EnvironmentFile=/var/www/html/bot/.env [Install] WantedBy=multi-user.target