/[gentoo-x86]/net-misc/vde/files/vde.init
Gentoo

Contents of /net-misc/vde/files/vde.init

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Mar 29 10:58:19 2013 UTC (3 years, 10 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +4 -4 lines
Drop bashisms from init script. Thanks to Nico Baggus <mlspamcb@noci.xs4all.nl>. Bug #447240

(Portage version: 2.1.11.58/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 #!/sbin/runscript
2 # Copyright 1999-2013 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-misc/vde/files/vde.init,v 1.4 2010/01/12 12:58:36 dang Exp $
5
6 depend() {
7 after net.${VDE_TAP}
8 }
9
10
11 start() {
12 ebegin "Starting vde"
13 [ "${VDE_MODPROBE_TUN}" = "yes" ] && modprobe tun
14 start-stop-daemon --start --quiet \
15 --exec /usr/bin/vde_switch -- ${VDE_OPTS}
16 eend $? "Failed to start vde"
17 chmod -R ${VDE_SOCK_CHMOD} /var/run/vde.ctl
18 chown -R ${VDE_SOCK_CHOWN} /var/run/vde.ctl
19 }
20
21 stop() {
22 ebegin "Stopping vde"
23 start-stop-daemon --stop --quiet --exec /usr/bin/vde_switch
24 [ "${VDE_MODPROBE_TUN}" = "yes" ] && modprobe -r tun
25 eend $? "Failed to stop vde"
26 }

  ViewVC Help
Powered by ViewVC 1.1.20