Better than set +e / set -e would be to take advantage of the fact that set -e is suppressed in the condition of an if:
if invoke-rc.d --query ${service} start; [ $? = 104 ]; then
services="$service $services"
else
echo "WARNING: init script for $service not found."
fi
--
Neil Moore, [email protected], http://s-z.org/neil/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

