def service(process=None, action=None):
    ''' control service '''
    try:
        getattr(ServiceControl(process), action)()
    except __HOLE__, e:
        print >> sys.stderr, e
dataset/ETHPy150Open ownport/pyservice/pyservice.py/service