summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorNicolas Norvez <norvez@chromium.org>2019-05-10 15:02:07 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-05-12 19:27:53 -0700
commit3d53cbc7ebb65e43b5d9dfb7287094e7e20180df (patch)
tree06a590302d913dbb30d5462dda5340d0a2247af0 /scripts/update_payload/format_utils.py
parent4a1173a313c176f167bee5c2d23d34d04e0c6fd7 (diff)
init: respawn UE on crash
The init file specifies a limit to the number of respawns, but that does not imply that upstart will respawn the process if it crashes. Add the "respawn" stanza so Update Engine gets restarted if it crashes. BUG=chromium:961905 TEST=killall update_engine, observe that update_engine is restarted TEST=killall update_engine in a loop, observe that it's only restarted 10 times: ~# for i in {1..20}; do echo "Loop $i"; killall update_engine; sleep 1; done Loop 1 Loop 2 Loop 3 Loop 4 Loop 5 Loop 6 Loop 7 Loop 8 Loop 9 Loop 10 Loop 11 Loop 12 update_engine: no process found Loop 13 update_engine: no process found Loop 14 update_engine: no process found Loop 15 update_engine: no process found Change-Id: I6164fccb8fe76915d0dd260703712224e759387d Reviewed-on: https://chromium-review.googlesource.com/1606528 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Nicolas Norvez <norvez@chromium.org> Reviewed-by: Xiaochu Liu <xiaochu@chromium.org> Reviewed-by: Amin Hassani <ahassani@chromium.org>
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions