blob: f2912ff879e70fd724e86c12a72b16939cbf281f [file] [log] [blame]
# Copyright 2024 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Generate the mapping of servo serial to cambrionix usb port"
author "chromium-os-dev@chromium.org"
start on stopped upgrade-cambrionix
# It is exceedingly unlikely to OOM, as it's a simple dbus-send call,
# but better to kill it than to panic the system.
oom score -100
script
exec >>/usr/local/tmp/${UPSTART_JOB}.log 2>&1
set -x
set +e
/usr/bin/find-cambrionix-mapping
end script