slackware: add short sleep to initscript during service restart
authorRobby Workman <rw@rlworkman.net>
Tue, 11 Jan 2011 19:48:48 +0000 (13:48 -0600)
committerDan Williams <dcbw@redhat.com>
Tue, 11 Jan 2011 19:48:48 +0000 (13:48 -0600)
The restart() function almost never works here - perhaps some part
of NM takes a bit too long to stop() and then blocks the start()
operation - but "sleep 2" between them makes everything fine.

initscript/Slackware/rc.networkmanager.in

index 35c42a4..6eed87e 100644 (file)
@@ -62,6 +62,7 @@ nm_stop()
 nm_restart()
 {
   nm_stop
+  sleep 2
   nm_start
 }