From 136593c76ad21e5c2c91c868db5b4521a1eb6cd5 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Tue, 8 Nov 2022 21:19:19 +0100 Subject: [PATCH] freeswitch: use return in init script "start_service()" is a function, hence "return" should be used instead of "exit". Signed-off-by: Sebastian Kemper (cherry picked from commit 9604a203d5b749e5ef17f5dcc6cfebbb4afeb7f6) --- net/freeswitch/files/freeswitch.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/freeswitch/files/freeswitch.init b/net/freeswitch/files/freeswitch.init index c390b9f..f2b0c9c 100644 --- a/net/freeswitch/files/freeswitch.init +++ b/net/freeswitch/files/freeswitch.init @@ -26,7 +26,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 @@ -46,7 +46,7 @@ start_service() { $LOG_INFO using procd\'s default term_timeout elif ! [ 0 -lt "$term_timeout" ] 2>/dev/null; then $LOG_ERR invalid term_timeout in /etc/config/$NAME - exit 1 + return 1 fi for i in "$dir_localstate" "$dir_run"; do -- 2.30.2