diff --git a/shell/init_shell.sh b/shell/init_shell.sh index 1c29f30..0aeb389 100644 --- a/shell/init_shell.sh +++ b/shell/init_shell.sh @@ -10,4 +10,6 @@ cd /data/openpilot/logs rm -f watcher.log.gz ls watcher.log && gzip watcher.log +chmod +x /data/openpilot/shell/watcher_run_loop.sh + screen -dmS "watcher" /data/openpilot/shell/watcher_run_loop.sh diff --git a/shell/watcher.js b/shell/watcher.js index ac742db..c16d24e 100644 --- a/shell/watcher.js +++ b/shell/watcher.js @@ -162,7 +162,7 @@ wss.on('connection', function connection(ws) { }); // Handle upgrade of the request -websocket_server.on('upgrade', function upgrade(request, socket, head) { +wss.on('upgrade', function upgrade(request, socket, head) { const { pathname } = url.parse(request.url); if (pathname === '/ws') {