[Unit] Description=Browser multiplayer example Wants=network-online.target After=network-online.target [Service] User=browsergame WorkingDirectory=/opt/browser-game # Install Node.js at /usr/bin/node, or replace this with its absolute path. ExecStart=/usr/bin/node /opt/browser-game/server.js Environment=NODE_ENV=production Environment=PORT=3000 Restart=on-failure RestartSec=5 NoNewPrivileges=true PrivateTmp=true ProtectHome=true ProtectSystem=strict [Install] WantedBy=multi-user.target