blob: 90e5a6f1b7a6b40d14497bc17aa3d53859cd8ee5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/files/lldpd-initd-1,v 1.1 2012/02/09 23:34:41 chutzpah Exp $
depend() {
use net
}
start() {
ebegin "Starting lldpd"
start-stop-daemon --start --exec /usr/sbin/lldpd \
--pidfile /var/run/lldpd.pid \
-- ${LLDPD_OPTS}
eend $?
}
stop() {
ebegin "Stopping lldpd"
start-stop-daemon --stop --exec /usr/sbin/lldpd \
--pidfile /var/run/lldpd.pid
eend $?
}
|