#!/sbin/openrc-run # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 command=/sbin/dmeventd command_args="-R" extra_started_commands=reload 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 } reload() { ebegin "Restarting dmeventd" DMEVENTD_IDLE_EXIT_TIMEOUT=${DMEVENTD_IDLE_EXIT_TIMEOUT:--1} \ ${command} ${command_args} & eend $? } start() { ebegin "Starting dmeventd" start-stop-daemon --start -x ${command} -e DMEVENTD_IDLE_EXIT_TIMEOUT=${DMEVENTD_IDLE_EXIT_TIMEOUT:--1} eend $? } stop() { ebegin "Stopping dmeventd" start-stop-daemon --stop -x ${command} eend $? }