freeswitch: use return in init script
"start_service()" is a function, hence "return" should be used instead of "exit". Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
ebfad751c7
commit
9604a203d5
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ start_service() {
|
||||||
config_get_bool enabled general enabled 0
|
config_get_bool enabled general enabled 0
|
||||||
if [ $enabled -eq 0 ]; then
|
if [ $enabled -eq 0 ]; then
|
||||||
$LOG_ERR service not enabled in /etc/config/$NAME
|
$LOG_ERR service not enabled in /etc/config/$NAME
|
||||||
exit 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
config_get_bool log_stderr general log_stderr 1
|
config_get_bool log_stderr general log_stderr 1
|
||||||
|
@ -46,7 +46,7 @@ start_service() {
|
||||||
$LOG_INFO using procd\'s default term_timeout
|
$LOG_INFO using procd\'s default term_timeout
|
||||||
elif ! [ 0 -lt "$term_timeout" ] 2>/dev/null; then
|
elif ! [ 0 -lt "$term_timeout" ] 2>/dev/null; then
|
||||||
$LOG_ERR invalid term_timeout in /etc/config/$NAME
|
$LOG_ERR invalid term_timeout in /etc/config/$NAME
|
||||||
exit 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in "$dir_localstate" "$dir_run"; do
|
for i in "$dir_localstate" "$dir_run"; do
|
||||||
|
|
Loading…
Reference in a new issue