3 # NetworkManager NetworkManager daemon
4 # Daemon for automatically switching network
5 # connections to the best available connection.
6 # This file should be placed in /etc/init.d.
8 # Authors: <j@bootlab.org>
9 # Mark Roach <mrroach@okmaybe.com>
10 # Thom May <thom@debian.org>
12 # Version: @(#)skeleton 2.85-23 28-Jul-2004 miquels@cistron.nl
17 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
18 DESC
="Network connection manager daemon"
20 DAEMON
=/usr
/sbin
/$NAME
21 PIDFILE
=/var
/run
/$NAME.pid
22 SCRIPTNAME
=/etc
/init.d
/$NAME
25 # Gracefully exit if the package has been removed.
26 test -x $DAEMON ||
exit 0
29 # Function that starts the daemon/service.
32 start-stop-daemon
--start --quiet --pidfile $PIDFILE \
33 --user $USER --exec $DAEMON -- $DAEMON_OPTS
37 # Function that stops the daemon/service.
40 start-stop-daemon
--stop --quiet --pidfile $PIDFILE \
41 --oknodo --user $USER --exec $DAEMON
47 echo -n "Starting $DESC: $NAME"
52 echo -n "Stopping $DESC: $NAME"
57 echo -n "Restarting $DESC: $NAME"
64 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2