def _service(service, action):
 if (distrib_family() != 'gentoo'):
  status = run_as_root(('service %(service)s %(action)s' % locals()), pty=False)
 else:
  status = run_as_root(('/etc/init.d/%(service)s %(action)s' % locals()), pty=False)
 return status

def _service ( service , action ) : if ( distrib_family ( ) != 'gentoo' ) : status = run_as_root ( ( 'service %(service)s %(action)s' % locals ( ) ) , pty = False ) else : status = run_as_root ( ( '/etc/init.d/%(service)s %(action)s' % locals ( ) ) , pty = False ) return status
compatibility layer for distros that use service and those that dont .