about summary refs log tree commit diff
path: root/debian/network-manager.init
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2008-01-24 23:21:18 +0000
committerMichael Biebl <biebl@debian.org>2008-01-24 23:21:18 +0000
commitd002b93c4fcff7a8e9b5274ff4b07d1feed81a51 (patch)
tree4a30e7fd3a2ea45c385da0ea115328c6566d228e /debian/network-manager.init
parenta450971ec0fd237ad7984a936d4d04a4da0f1e67 (diff)
* debian/network-manager.init,
  debian/network-manager.network-manager-dispatcher.init
  - Fix LSB init header. Use $remote_fs instead of $local_fs as the
    daemon requires /usr to be mounted. 
    Remove S from Should-Stop. (Closes: #459480)
  - Shorten retry-time to 5 secs on stop.
  - Don't fail to start if daemon is already running.

git-svn-id: svn+ssh://svn.debian.org/svn/pkg-utopia/packages/unstable/networkmanager@2059 ceb527fc-18e6-0310-9fe2-813c157c29e7
Diffstat (limited to 'debian/network-manager.init')
-rw-r--r--debian/network-manager.init11
1 files changed, 5 insertions, 6 deletions
diff --git a/debian/network-manager.init b/debian/network-manager.init
index d096e950..9e6fcf0b 100644
--- a/debian/network-manager.init
+++ b/debian/network-manager.init
@@ -1,12 +1,12 @@
 #! /bin/sh
 ### BEGIN INIT INFO
 # Provides:          NetworkManager
-# Required-Start:    $local_fs dbus dhcdbd hal
-# Required-Stop:     $local_fs dbus dhcdbd hal
+# Required-Start:    $remote_fs dbus dhcdbd hal
+# Required-Stop:     $remote_fs dbus dhcdbd hal
 # Should-Start:	     $syslog
 # Should-Stop:       $syslog
 # Default-Start:     2 3 4 5
-# Default-Stop:      S 0 1 6
+# Default-Stop:      0 1 6
 # Short-Description: network connection manager
 # Description:       Daemon for automatically switching network 
 #		     connections to the best available connection.
@@ -34,7 +34,6 @@ test -x $DAEMON || exit 0
 
 . /lib/lsb/init-functions
 
-test -f /etc/default/rcS && . /etc/default/rcS
 test -f /etc/default/NetworkManager && . /etc/default/NetworkManager
 
 #
@@ -47,7 +46,7 @@ d_start() {
 	fi
 
 	start-stop-daemon --start --quiet --pidfile $PIDFILE \
-		--user $USER --exec $DAEMON -- $DAEMON_OPTS --pid-file $PIDFILE
+		--oknodo --user $USER --exec $DAEMON -- $DAEMON_OPTS --pid-file $PIDFILE
 		
 }
 
@@ -55,7 +54,7 @@ d_start() {
 #	Function that stops the daemon/service.
 #
 d_stop() {
-	start-stop-daemon --stop --retry 60 --quiet --pidfile $PIDFILE \
+	start-stop-daemon --stop --retry 5 --quiet --pidfile $PIDFILE \
 		 --oknodo --user $USER --exec $DAEMON
 		 
 }