def METHOD_NAME(self, s):
    _s = os.path.basename(s)
    _svcname = re.sub(r'^[SK][0-9]+', '', _s)
    _seq = re.sub(r'[KS](\d+).+', r'\1', _s)
    if _s[0] == 'S':
        _state = 'on'
    elif _s[0] == 'K':
        _state = 'off'
    else:
        raise InitError("unexepected service name: %s"%s)
    return _state, _seq, _svcname