| # Copyright 2014 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 "Run the peer discovery services daemon" |
| author "chromium-os-dev@chromium.org" |
| |
| start on starting system-services |
| stop on stopping system-services |
| |
| env PEERD_LOG_LEVEL=0 |
| env PEERD_INITIAL_MDNS_PREFIX= |
| |
| # Minijail actually forks off our desired process |
| expect fork |
| |
| exec minijail0 -i -g peerd -u peerd /usr/bin/peerd \ |
| --v="${PEERD_LOG_LEVEL}" \ |
| --mdns_prefix="${PEERD_INITIAL_MDNS_PREFIX}" |