add service mode in linux env
add service mode in linux env