blob: 40d54fee0f17214e1a7804f0973159975dc007e3 [file] [log] [blame] [edit]
# Copyright 2019 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 the cros_healthd daemon"
author "chromium-os-dev@chromium.org"
# Start the cros_healthd daemon, which is responsible for reporting telemetry
# data and running diagnostics.
start on starting system-services
stop on stopping system-services
respawn
# If the job respawns 3 times in 10 seconds, stop trying.
respawn limit 3 10
# Process is not system critical but dependency of other deamons.
oom score -200
pre-start script
# Setup and clean the paths listed in tmpfiles.d config.
systemd-tmpfiles --create --remove \
/usr/lib/tmpfiles.d/on-demand/cros_healthd.conf
end script
# Run the daemon.
exec /usr/bin/cros_healthd