Add service support

Signed-off-by: dingxin <dingxin.git@gmail.com>