aboutsummaryrefslogtreecommitdiffstats
path: root/community/lldpd/lldpd.initd
blob: 9cebc81cc08b1f5f03973cc1a0299155580ceaa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}