service: Add 'run' parameter to functions

So that we can use the service API to control
services in virtual machines.

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