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

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

index 72149be2a709a6e463cf6ba07bb5a6a3a983a7a7..d48e5d60fcc42cac79b47386923004727705e772 100644 (file)
@@ -21,7 +21,7 @@ start_service() {
   if [ "$ENABLE_BARESIP" != yes ]; then
     $LOGGER User configuration incomplete - not starting $DAEMON
     $LOGGER Check ENABLE_BARESIP in $DEFAULT
-    exit 1
+    return 1
   fi
 
   procd_open_instance