summaryrefslogtreecommitdiff
path: root/net-misc/lldpd/files/lldpd-initd-5
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/lldpd/files/lldpd-initd-5')
-rw-r--r--net-misc/lldpd/files/lldpd-initd-520
1 files changed, 20 insertions, 0 deletions
diff --git a/net-misc/lldpd/files/lldpd-initd-5 b/net-misc/lldpd/files/lldpd-initd-5
new file mode 100644
index 000000000000..ab0fc20c769c
--- /dev/null
+++ b/net-misc/lldpd/files/lldpd-initd-5
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+name=lldpd
+pidfile=/run/lldpd.pid
+command=/usr/sbin/lldpd
+retry="TERM/10/KILL/5"
+command_args="${LLDPD_OPTS}"
+start_stop_daemon_args="--wait 300"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ checkpath --directory /run/lldpd -o lldpd -m 0700
+}
+
+# vim:ft=gentoo-init-d:noet:ts=4:sts=4:sw=4: