summarylogtreecommitdiffstats
path: root/lvmpolld.initd
diff options
context:
space:
mode:
authorŁukasz Mariański2021-01-06 11:07:21 +0100
committerŁukasz Mariański2021-01-06 11:07:21 +0100
commit5949818034005a0c6687c9dc9e2577aca4e29df3 (patch)
tree54913a03fdc57cdd9bce9fb0c2084822e4073050 /lvmpolld.initd
downloadaur-5949818034005a0c6687c9dc9e2577aca4e29df3.tar.gz
Init:
Diffstat (limited to 'lvmpolld.initd')
-rw-r--r--lvmpolld.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/lvmpolld.initd b/lvmpolld.initd
new file mode 100644
index 000000000000..72f75141e5eb
--- /dev/null
+++ b/lvmpolld.initd
@@ -0,0 +1,17 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+pidfile="/run/lvmpolld.pid"
+command="/usr/bin/lvmpolld"
+command_args="${LVMPOLLD_OPTS:=-p ${pidfile}}"
+start_stop_daemon_args="--pidfile ${pidfile}"
+
+depend() {
+ :
+}
+
+start_pre()
+{
+ checkpath --directory /run/lvm || return 1
+}