"start_service()" is a function, hence "return" should be used instead
of "exit".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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
$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