| # Copyright 2024 The ChromiumOS Authors | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| description "Privacy Monitoring Daemon for ChromeOS" | |
| author "chromium-os-dev@chromium.org" | |
| # Service is started by D-Bus when a message is sent to its well-known name. | |
| # Terminate when user logs out. | |
| stop on stopping ui | |
| respawn | |
| respawn limit 3 60 # if the job respawns 3 times in a minute, stop trying. | |
| # Allow us to be killed as we are not critical to the system. | |
| oom score -100 | |
| # Minijail forks off the desired process. | |
| expect fork | |
| exec minijail0 --config /usr/share/minijail/regmond.conf -- /usr/bin/regmond | |
| # Wait for daemon to claim its D-Bus name before transitioning to started. | |
| post-start exec minijail0 -u regmond -g regmond /usr/bin/gdbus \ | |
| wait --system --timeout 15 org.chromium.Regmond |