/[gentoo-x86]/net-misc/lldpd/files/lldpd-initd-1
Gentoo

Contents of /net-misc/lldpd/files/lldpd-initd-1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Feb 9 23:34:41 2012 UTC (8 years, 1 month ago) by chutzpah
Branch: MAIN
added new package net-misc/lldpd

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 chutzpah 1.1 #!/sbin/runscript
2     # Copyright 1999-2012 Gentoo Foundation
3     # Distributed under the terms of the GNU General Public License v2
4     # $Header: $
5    
6     depend() {
7     use net
8     }
9     start() {
10     ebegin "Starting lldpd"
11     start-stop-daemon --start --exec /usr/sbin/lldpd \
12     --pidfile /var/run/lldpd.pid \
13     -- ${LLDPD_OPTS}
14     eend $?
15     }
16    
17     stop() {
18     ebegin "Stopping lldpd"
19     start-stop-daemon --stop --exec /usr/sbin/lldpd \
20     --pidfile /var/run/lldpd.pid
21     eend $?
22     }

  ViewVC Help
Powered by ViewVC 1.1.20