asterisk: use return in init script
authorSebastian Kemper <sebastian_ml@gmx.net>
Tue, 8 Nov 2022 20:08:16 +0000 (21:08 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Tue, 8 Nov 2022 20:08:54 +0000 (21:08 +0100)
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/asterisk/files/asterisk.init

index 2e02f0626781890ee3cfd200789bb061b35510d1..51ab25949ba41024a106c3ac501942387ecc36b3 100644 (file)
@@ -26,7 +26,7 @@ start_service() {
   config_get_bool enabled general enabled 0
   if [ $enabled -eq 0 ]; then
     $LOGGER service not enabled in /etc/config/$NAME
-    exit 1
+    return 1
   fi
 
   config_get_bool log_stderr general log_stderr 1