| # Copyright (c) 2012 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 "Media Transfer Protocol Daemon" |
| author "chromium-os-dev@chromium.org" |
| |
| # Minimum log level defined in base/logging.h. |
| # 0:INFO, 1:WARNING, 2:ERROR, 3:ERROR_REPORT, 4:FATAL |
| # Set to log only WARNING or above by default. |
| env MTPD_MINLOGLEVEL=1 |
| |
| start on starting system-services |
| stop on stopping system-services |
| |
| respawn |
| |
| # use minijail (drop root, set no_new_privs, set seccomp filter) |
| exec minijail0 -u mtp -g mtp -G -n -S /opt/google/mtpd/mtpd-seccomp.policy -- \ |
| /opt/google/mtpd/mtpd -minloglevel="${MTPD_MINLOGLEVEL}" |