| # 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 |