diff options
author | freaj <freaj@riseup.net> | 2015-03-23 11:27:55 +0100 |
---|---|---|
committer | freaj <freaj@riseup.net> | 2015-03-23 11:27:55 +0100 |
commit | 0161d0dd7de853da1f86bb3b6f27adf25977c785 (patch) | |
tree | 496f2da02a919ddf4fee0001c274237f72835fe2 /pcr/openrc-base/dmeventd.initd-2.02.67-r1 | |
parent | 1846e57b8e352d4f7fa711f32206375d318e93d8 (diff) | |
download | abslibre-0161d0dd7de853da1f86bb3b6f27adf25977c785.tar.gz abslibre-0161d0dd7de853da1f86bb3b6f27adf25977c785.tar.bz2 abslibre-0161d0dd7de853da1f86bb3b6f27adf25977c785.zip |
openrc-base: add missing files
Diffstat (limited to 'pcr/openrc-base/dmeventd.initd-2.02.67-r1')
-rw-r--r-- | pcr/openrc-base/dmeventd.initd-2.02.67-r1 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pcr/openrc-base/dmeventd.initd-2.02.67-r1 b/pcr/openrc-base/dmeventd.initd-2.02.67-r1 new file mode 100644 index 000000000..3c2f5f327 --- /dev/null +++ b/pcr/openrc-base/dmeventd.initd-2.02.67-r1 @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/dmeventd.initd-2.02.67-r1,v 1.3 2014/02/08 21:17:46 robbat2 Exp $ + +PIDFILE=/run/dmeventd.pid +BIN=/sbin/dmeventd + +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 +} + +start() { + ebegin "Starting dmeventd" + start-stop-daemon --start --exec $BIN --pidfile $PIDFILE + eend $? +} + +stop() { + ebegin "Stopping dmeventd" + start-stop-daemon --stop --exec $BIN --pidfile $PIDFILE + eend $? +} + |