| # Copyright 2022 The ChromiumOS Authors | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| description "ChromeOS LVM daemon" | |
| author "chromium-os-dev@chromium.org" | |
| # No need for a start stanza, this daemon will started on demand. | |
| stop on stopping system-services | |
| # Let lvmd be killable as it can restore itself when it's consuming too much | |
| # memory. | |
| oom score -100 | |
| # Run lvmd. | |
| # TODO(b/236007986): minijail/sandbox process for further security. | |
| exec /usr/sbin/lvmd | |
| post-start exec /usr/bin/gdbus \ | |
| wait --system --timeout 15 org.chromium.Lvmd |