aboutsummaryrefslogtreecommitdiffstats
path: root/community/lldpd/lldpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/lldpd/lldpd.initd')
-rw-r--r--community/lldpd/lldpd.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/lldpd/lldpd.initd b/community/lldpd/lldpd.initd
new file mode 100644
index 0000000000..9cebc81cc0
--- /dev/null
+++ b/community/lldpd/lldpd.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+name=lldpd
+pidfile=/run/lldpd/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
+}
+