)]}'
{"templates/supervisor_watchdog.sh.erb":[{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"2d908e0794bc084b6a5e8acb8c2d749764f5691c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/usr/bin/env bash"},{"line_number":2,"context_line":"dt\u003d`date \u0027+%d/%m/%Y %H:%M:%S\u0027`"},{"line_number":3,"context_line":"output\u003d$(supervisorctl status | grep -i \"FATAL\");"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"if test -z \"$output\""},{"line_number":6,"context_line":"then"}],"source_content_type":"application/x-erb","patch_set":1,"id":"3fa7e38b_410cf5ea","line":3,"updated":"2020-01-30 14:12:31.000000000","message":"Oh, also the trailing semicolon is unnecessary here too.","commit_id":"9de086dd62a09af38826bf421c65fb2d1b97fad3"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"5d6a45850c31181f64f4f5142ec53847e679b13e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/usr/bin/env bash"},{"line_number":2,"context_line":"dt\u003d`date \u0027+%d/%m/%Y %H:%M:%S\u0027`"},{"line_number":3,"context_line":"output\u003d$(supervisorctl status | grep -i \"FATAL\");"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"if test -z \"$output\""},{"line_number":6,"context_line":"then"}],"source_content_type":"application/x-erb","patch_set":1,"id":"3fa7e38b_61fd71b7","line":3,"updated":"2020-01-30 14:11:54.000000000","message":"You might also consider relying on the exit code instead of parsing the text output, at least if `supervisorctl status` exits 0 on success and 1 on failure/error conditions.","commit_id":"9de086dd62a09af38826bf421c65fb2d1b97fad3"},{"author":{"_account_id":9139,"name":"sebastian marcet","email":"smarcet@gmail.com","username":"smarcet"},"change_message_id":"dfa587c60af8b3910474f5bc5ce603b936ce91f4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/usr/bin/env bash"},{"line_number":2,"context_line":"dt\u003d`date \u0027+%d/%m/%Y %H:%M:%S\u0027`"},{"line_number":3,"context_line":"output\u003d$(supervisorctl status | grep -i \"FATAL\");"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"if test -z \"$output\""},{"line_number":6,"context_line":"then"}],"source_content_type":"application/x-erb","patch_set":1,"id":"3fa7e38b_615b3161","line":3,"in_reply_to":"3fa7e38b_410cf5ea","updated":"2020-01-30 14:38:26.000000000","message":"will fix","commit_id":"9de086dd62a09af38826bf421c65fb2d1b97fad3"},{"author":{"_account_id":9139,"name":"sebastian marcet","email":"smarcet@gmail.com","username":"smarcet"},"change_message_id":"dfa587c60af8b3910474f5bc5ce603b936ce91f4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/usr/bin/env bash"},{"line_number":2,"context_line":"dt\u003d`date \u0027+%d/%m/%Y %H:%M:%S\u0027`"},{"line_number":3,"context_line":"output\u003d$(supervisorctl status | grep -i \"FATAL\");"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"if test -z \"$output\""},{"line_number":6,"context_line":"then"}],"source_content_type":"application/x-erb","patch_set":1,"id":"3fa7e38b_c1a0e539","line":3,"in_reply_to":"3fa7e38b_61fd71b7","updated":"2020-01-30 14:38:26.000000000","message":"i checked and \nsupervisorctl status \u0026\u0026 echo $? returns 0 \nevent if the ouput has some fatal\nlike\n\"\nroot@openstackid-dev01:/var/log# supervisorctl status \u0026\u0026 echo $?\nlaravel-worker:laravel-worker_00   FATAL     Exited too quickly (process log may have details)\nlaravel-worker:laravel-worker_01   FATAL     Exited too quickly (process log may have details)\nlaravel-worker:laravel-worker_02   FATAL     Exited too quickly (process log may have details)\nlaravel-worker:laravel-worker_03   FATAL     Exited too quickly (process log may have details)\nlaravel-worker:laravel-worker_04   FATAL     Exited too quickly (process log may have details)\nlaravel-worker:laravel-worker_05   FATAL     Exited too quickly (process log may have details)\nlaravel-worker:laravel-worker_06   FATAL     Exited too quickly (process log may have details)\nlaravel-worker:laravel-worker_07   FATAL     Exited too quickly (process log may have details)\n0\n\n\"","commit_id":"9de086dd62a09af38826bf421c65fb2d1b97fad3"}]}
