blob: b076cb09457d59aa8f1241253ccb116ad96ab3b2 [file] [log] [blame]
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Set up the containers directory on the external storage."
author ""
start on stopped moblab-autotest-setup
env CONTAINER_DIR=/mnt/moblab/containers
env AUTOTEST_CONTAINER_DIR=/usr/local/autotest/containers
normal exit 0
mkdir -p /var/log/bootup/
exec >>/var/log/bootup/${UPSTART_JOB}.log 2>&1
set -x
set -e
logger -t "${UPSTART_JOB}" "Starting."
mkdir -p "${CONTAINER_DIR}"
chown -R moblab:moblab "${CONTAINER_DIR}" || :
if [ ! -e "${AUTOTEST_CONTAINER_DIR}" ]; then
logger -t "${UPSTART_JOB}" "Creating autotest containers dir symlink."
logger -t "${UPSTART_JOB}" "Ending."
end script