# FIXME maybe PROG_PATH__ for better error reporting?
PROG_NAME__="" # initialised within init section
+# directory for init scripts
+INITD_DIR__="/etc/init.d/"
+
# >= level and the function will print the message
EPRINT__=1 # eprint (error print)
EEPRINT__=2 # 2print (intern error print)
return 1
done
+ service_="${INITD_DIR__}/$service_"
if [ ! -e "$service_" ]; then
$error_function_ "service does not exist: \"$service_\""
return 1
$error_function_ "service is not executable: \"$service_\""
fi
- /etc/init.d/$service_ $action_
+ "$service_" "$action_"
}
function _createServiceFunctions
done
}
_createServiceFunctions
-
# }}}
# prints the next free /dev/loop* to stdout