blob: 0d7697e13aeea0f77f3054a7a777187bbe3bffb4 [file] [log] [blame]
Chris Sosa45d9f102014-03-24 11:18:54 -07001# Copyright 2014 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5description "Brillo Buffet Service"
6author "chromium-os-dev@chromium.org"
7
8start on starting system-services
9stop on stopping system-services
10respawn
11
Alex Vakulenko3cb466c2014-04-15 11:36:32 -070012pre-start script
Anton Muhin2a9d63d2014-11-22 05:11:16 +040013 mkdir -m 0755 -p /var/lib/buffet
14 chown -R buffet:buffet /var/lib/buffet
Alex Vakulenko3cb466c2014-04-15 11:36:32 -070015end script
16
Anton Muhin1738fbe2014-11-20 01:10:08 +040017# Minijail actually forks off our desired process.
18expect fork
19
20exec minijail0 -i -g buffet -u buffet \
21 /usr/bin/buffet --v="${V:-1}"