{"push_id":729385687,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"5f2ba5cf6b64490bf16eb341fbae041e6de53d80","before":"a0ff14f321b25e2347d0fb148d4caa969ab6d5b1","commits":[{"sha":"5f2ba5cf6b64490bf16eb341fbae041e6de53d80","author":{"email":"ed242ca90c571505354b1daf8e867bce1307c4d2@imag.fr","name":"Etienne Dublé"},"message":"Re-worked walt-monitor and related log handling.\n\nwalt-monitor was a python script. On a raspberry pi,\npython scripts are very slow to be started.\n'walt-monitor echo test' was taking more than 2 seconds.\n\nWe now have most of the functionality implemented\nby walt-node-daemon, and walt-monitor is now a shell\nscript.\nThe communication between these two is handled by\nFIFOs.\n\nwalt-node-daemon waits for requests on\n/var/lib/walt/logs.fifo\nThe first request implemented is:\nMONITOR <stream_name> <fifo_file>\nUpon receipt of a request of this kind, walt-node-daemon\nwill open a new log connection to the server, with\nname <stream_name>, then it will start reading <fifo_file>\nand forward any log line through this log connection.\n\nThus, walt-monitor just has to:\n- creates 2 fifo files, to handle stdout and stderr of the\ncommand that must be monitored\n- send the 2 relevant MONITOR requests to /var/lib/walt/logs.fifo\n- start the specified command with stdout and stderr redirected\nto the relevant FIFOs.","distinct":true,"url":"https://api.github.com/repos/drakkar-lig/walt-python-packages/commits/5f2ba5cf6b64490bf16eb341fbae041e6de53d80"}]}