[Slackbuilds-users] [PATCH] network/bitlbee: Correct "restart" in rc.bitlbee

William G Gardella wgg2 at member.fsf.org
Fri Aug 28 17:12:43 UTC 2015


The included "restart" function of rc.bitlbee attempts to start bitlbee
and then stop it, instead of stopping and then starting it.
This patch corrects the problem.
---
 network/bitlbee/rc.bitlbee | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/network/bitlbee/rc.bitlbee b/network/bitlbee/rc.bitlbee
index 5f0ef7a..ba5dbc9 100644
--- a/network/bitlbee/rc.bitlbee
+++ b/network/bitlbee/rc.bitlbee
@@ -59,9 +59,9 @@ case "$1" in
     bitlbee_stop
     ;;
   restart)
-    bitlbee_start
-    sleep 3
     bitlbee_stop
+    sleep 3
+    bitlbee_start
     ;;
   *)
     echo "Usage: $(basename $0) {start|stop|restart}"
-- 
2.5.0




More information about the SlackBuilds-users mailing list