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

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

index 728c482267f69d4039df0339571a7f7558a96ded..850c95a47900faab98d21f3cbfb523d15e51bd54 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=coturn
 PKG_VERSION:=4.5.2
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/coturn/coturn/tar.gz/$(PKG_VERSION)?
index 8f36d5aca5efed78a165f15cd7210f84c1f01609..73bf916d39f58c3f3b3728bae62f2f76eaa2d2a7 100755 (executable)
@@ -20,7 +20,7 @@ start_service() {
   config_get_bool enabled general enabled 0
   if [ $enabled -eq 0 ]; then
     $LOG_ERR service not enabled in /etc/config/$NAME
-    exit 1
+    return 1
   fi
 
   config_get_bool log_stderr general log_stderr 1