소스 검색

proper LSB return values of init script

The init script should return proper LSB error values also if
kamailio ist not configured yet.
Klaus Darilion 14 년 전
부모
커밋
4975d655b5
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      pkg/kamailio/deb/debian/kamailio.init

+ 8 - 1
pkg/kamailio/deb/debian/kamailio.init

@@ -93,7 +93,14 @@ fi
 
 if [ "$RUN_KAMAILIO" != "yes" ]; then
     echo "Kamailio not yet configured. Edit /etc/default/kamailio first."
-    exit 0
+    case "$1" in
+    status)
+        exit 4
+       ;;
+    *)
+       exit 1
+       ;;
+    esac
 fi
 
 set -e