somecommand
if [ $? -ne 0 ]; then echo "it failed"; fi
the parent commenter presumably wants to see
if ! somecommand; then echo "it failed"; fi
somecommand || echo "it failed"
start_service || log "already started"