device-mapper-openrc/dmeventd.initd

22 lines
595 B
Plaintext
Raw Normal View History

2023-05-05 12:49:36 +05:30
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
2021-01-06 15:40:43 +05:30
# Distributed under the terms of the GNU General Public License v2
2023-05-05 12:49:36 +05:30
command=/sbin/dmeventd
command_args_foreground='-f'
extra_started_commands=reload
pidfile=/run/dmeventd.pid
# Control idle exit behavior of daemon
export DMEVENTD_IDLE_EXIT_TIMEOUT=${DMEVENTD_IDLE_EXIT_TIMEOUT:=-1}
2021-01-06 15:40:43 +05:30
depend() {
# As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that
# means dmeventd is NOT notified, as it cannot be safely running
after lvm device-mapper
}
2023-05-05 12:49:36 +05:30
reload() {
# TODO: this is not supported under supervisors
${command} -R
2021-01-06 15:40:43 +05:30
}