)]}'
{"elements/undercloud-install/pre-install.d/01-persistent-journal":[{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"4f556cf32c4676647516f4b75c0733c81b050c6f","unresolved":false,"context_lines":[{"line_number":11,"context_line":"systemctl restart systemd-journald.service"},{"line_number":12,"context_line":"set -e"},{"line_number":13,"context_line":"sleep 2"},{"line_number":14,"context_line":"is_active\u003d$(systemctl show systemd-journald | grep ActiveState)"},{"line_number":15,"context_line":"if  [[ $is_active !\u003d \"ActiveState\u003dactive\" ]]; then"},{"line_number":16,"context_line":"    set +x"},{"line_number":17,"context_line":"    echo \"*** Error *** Couldn\u0027t restart systemd-journald\""}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"ba0121b8_b0089029","line":14,"updated":"2016-03-31 16:18:30.000000000","message":"this is fine, but could be simpler with:\n\nsystemctl is-active systemd-journald\n\nwhich just returns \"active\" if it\u0027s active :)","commit_id":"a583594bb967767888f7baf19b062875ecc71ad3"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"9da4a18356186d542fec2bec6b289eb5f8343bde","unresolved":false,"context_lines":[{"line_number":11,"context_line":"systemctl restart systemd-journald.service"},{"line_number":12,"context_line":"set -e"},{"line_number":13,"context_line":"sleep 2"},{"line_number":14,"context_line":"is_active\u003d$(systemctl show systemd-journald | grep ActiveState)"},{"line_number":15,"context_line":"if  [[ $is_active !\u003d \"ActiveState\u003dactive\" ]]; then"},{"line_number":16,"context_line":"    set +x"},{"line_number":17,"context_line":"    echo \"*** Error *** Couldn\u0027t restart systemd-journald\""}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"ba0121b8_7302820b","line":14,"in_reply_to":"ba0121b8_b0089029","updated":"2016-03-31 16:26:30.000000000","message":"Done","commit_id":"a583594bb967767888f7baf19b062875ecc71ad3"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"480c5aee4a6d5e077e03c7d74a693d458031c2aa","unresolved":false,"context_lines":[{"line_number":9,"context_line":"# TODO(marios): temporarily +e for +bug/1564471 then check service restarted"},{"line_number":10,"context_line":"set +e"},{"line_number":11,"context_line":"systemctl restart systemd-journald.service"},{"line_number":12,"context_line":"set -e"},{"line_number":13,"context_line":"sleep 2"},{"line_number":14,"context_line":"is_active\u003d$(systemctl is-active systemd-journald)"},{"line_number":15,"context_line":"if  [[ $is_active !\u003d \"active\" ]]; then"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"ba0121b8_960e248a","line":12,"updated":"2016-03-31 16:57:42.000000000","message":"Alternatively\n\n    systemctl restart systemd-journald.service || true\n\ncan be done instead of `set +e` flip. Not a blocker.","commit_id":"cc41b7a1f9009a1dd24193b3a7e98a13496cbcc0"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"d44af692fbcd1416accd44a1d7f935c3cddbbc85","unresolved":false,"context_lines":[{"line_number":9,"context_line":"# TODO(marios): temporarily +e for +bug/1564471 then check service restarted"},{"line_number":10,"context_line":"set +e"},{"line_number":11,"context_line":"systemctl restart systemd-journald.service"},{"line_number":12,"context_line":"set -e"},{"line_number":13,"context_line":"sleep 2"},{"line_number":14,"context_line":"is_active\u003d$(systemctl is-active systemd-journald)"},{"line_number":15,"context_line":"if  [[ $is_active !\u003d \"active\" ]]; then"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"ba0121b8_763430fb","line":12,"in_reply_to":"ba0121b8_960e248a","updated":"2016-03-31 17:03:18.000000000","message":"ok, that should work (I see the exception for || in the -e [1]) - i mean i have no objections if you want to sanity check and then update the review tomorrow fine. but you +2 so I guess you don\u0027t object too strongly to the current form either.\n\n\n[1] https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html\n\n... The shell does not exit if the command that fails is part of the command list immediately following a while or until keyword, part of the test in an if statement, part of any command executed in a \u0026\u0026 or || list except the command following the final \u0026\u0026 or ||, any command in a pipeline but the last, or if the command’s return status is being inverted with !. \n...","commit_id":"cc41b7a1f9009a1dd24193b3a7e98a13496cbcc0"}]}
