Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

ActiveSambaLdap::Base

Public Class Methods

restart_nscd() click to toggle source
# File lib/active_samba_ldap/base.rb, line 127
def restart_nscd
  nscd_working = system("/etc/init.d/nscd status >/dev/null 2>&1")
  system("/etc/init.d/nscd stop >/dev/null 2>&1") if nscd_working
  yield if block_given?
ensure
  system("/etc/init.d/nscd start >/dev/null 2>&1") if nscd_working
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.