blob: e65ba8e15d436b471805eadff176fcce313b8fa1 [file] [log] [blame]
# Copyright 2016 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 "Mount /media/removable for ARC."
author "chromium-os-dev@chromium.org"
start on started arc-network
stop on stopping arc-network
env SOURCE=/media/removable
env DEST=/run/arc/media/removable
script
{
echo "Start arc-removable-media"
set -x
# Unlike other services, redirect to logger, since libfuse used in
# mount-passthrough uses stdio for logging.
exec mount-passthrough-jailed $SOURCE $DEST 007
} 2>&1 | logger -t "${UPSTART_JOB}"
end script
post-stop exec logger -t "${UPSTART_JOB}" "Post-stop arc-removable-media"