add service mode in linux env