/[gentoo-x86]/net-misc/networkmanager/files/NetworkManagerDispatcher
Gentoo

Contents of /net-misc/networkmanager/files/NetworkManagerDispatcher

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Sep 13 09:54:12 2012 UTC (2 years, 1 month ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Version bump with various fixes. No longer saves thousands of temporary ipv6 routes (bug #428274, thanks to Matthias Nagel). No longer installs dispatcher and init scripts when USE=systemd to avoid annoying systemd users (bug #434692, thanks to Arne St├Ącker). Drop old.

(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)

1 #!/sbin/runscript
2 #
3 # NetworkManagerDispatcher: NetworkManagerDispatcher daemon
4 #
5 # chkconfig: 345 98 02
6 # description: This is a daemon for automatically executing certain
7 # actions, when switching networks
8 #
9 # processname: NetworkManagerDispatcher
10 # pidfile: /var/run/NetworkManagerDispatcher.pid
11
12 prefix=/usr
13 exec_prefix=/usr
14 sbindir=${exec_prefix}/sbin
15
16 NETWORKMANAGERDISPATCHER_BIN=${sbindir}/NetworkManagerDispatcher
17
18 # Sanity checks.
19 [ -x $NETWORKMANAGERDISPATCHER_BIN ] || exit 0
20
21 # so we can rearrange this easily
22 processname=$NETWORKMANAGERDISPATCHER_BIN
23 pidfile=/var/run/NetworkManagerDispatcher.pid
24
25 depend() {
26 need NetworkManager
27 }
28
29 start()
30 {
31 if [ -e ${pidfile} ]; then
32 rm -f ${pidfile}
33 fi
34 ebegin "Starting NetworkManagerDispatcher"
35 start-stop-daemon --start --quiet --exec ${processname}
36 eend $?
37 echo $(/bin/pidof NetworkManagerDispatcher) > ${pidfile}
38 }
39
40 stop()
41 {
42 ebegin "Stopping NetworkManagerDispatcher"
43 start-stop-daemon --stop --quiet --exec ${processname} --pidfile ${pidfile}
44 eend $?
45 if [ -e ${pidfile} ]; then
46 rm -f $pidfile
47 fi
48 }

  ViewVC Help
Powered by ViewVC 1.1.20