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