File 0003-minor-init-script-changes.patch of Package osmo-oohmi

From 9af20fa659d9db4c302f54d7e8a7d362465b3551 Mon Sep 17 00:00:00 2001
From: Martin Hauke <mardnh@gmx.de>
Date: Tue, 30 Dec 2014 01:11:13 +0100
Subject: [PATCH 3/3] minor init-script changes

---
 osmocom-oohmi | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/osmocom-oohmi b/osmocom-oohmi
index 10bfff8..0731c61 100755
--- a/osmocom-oohmi
+++ b/osmocom-oohmi
@@ -2,20 +2,20 @@
 ### BEGIN INIT INFO
 # Provides:          osmo-oohmi
 # Required-Start:    $network $local_fs
-# Required-Stop:
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Required-Stop:     $network
+# Default-Start:     3 5
+# Default-Stop:      0 1 2 6
 # Short-Description: OpenBSC and OsmoSGSN HLR Management Interface
 # Description:       Web Management interface for OpenBSC, OsmoSGSN, GGSN, Asterisk and LCR services.
 ### END INIT INFO
-cd /etc/openbsc/
+cd /etc/osmocom/
 case "$1" in
 	start)
-		/usr/local/bin/pserve production.ini start ;;
+		/usr/bin/pserve production.ini start ;;
 	stop)
-		/usr/local/bin/pserve production.ini stop ;;
+		/usr/bin/pserve production.ini stop ;;
 	restart)
-		/usr/local/bin/pserve production.ini restart ;;
+		/usr/bin/pserve production.ini restart ;;
 	*)
 		echo "Usage: $0 {start|stop|restart}"
 		exit 1 ;;
-- 
1.8.4.5

openSUSE Build Service is sponsored by