baresip: use return in init script
authorSebastian Kemper <sebastian_ml@gmx.net>
Tue, 8 Nov 2022 20:10:52 +0000 (21:10 +0100)
committerRichard Muzik <richard.muzik@nic.cz>
Wed, 26 Jun 2024 05:34:27 +0000 (07:34 +0200)
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit b69ae7b9344228e1e83aaee2f62cebbd599c1388)
Signed-off-by: Richard Muzik <richard.muzik@nic.cz>
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