blob: 0f2240b54e0923a7dda0d26efa6d3e6630d5ee4c [file] [log] [blame] [edit]
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Start arc-host-clock-service"
author "chromium-os-dev@chromium.org"
start on starting arcvm-pre-login-services
stop on stopping arcvm-pre-login-services
oom score -100
limit as 100000000 unlimited
# Allow real-time priority as this service is time-critical.
# 10 is the same value as vm_concierge (RT vcpus for ARCVM).
limit rtprio 10 10
pre-start script
# Make sure the vsock module is loaded.
grep -q vhost-vsock /proc/misc || modprobe -q vhost-vsock
end script
exec minijail0 --config /usr/share/minijail/arc-host-clock-service.conf \
-- /usr/bin/arc-host-clock-service