service: Add 'run' parameter to functions

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>