lib/wire/resource/dhcp_range_config.rb
# check if dnsmasq is listening on the network device
check if dnsmasq is listening on the network device
check if dnsmasq is listening on the network device
def up?
        return false unless exist?
        filename = create_dnsmaqs_config_filename
        cmd = "/bin/grep #{network_name} #{filename} >/dev/null 2>&1"
        $log.debug("executing cmd=#{cmd}")
        `#{cmd}`
        ($CHILD_STATUS == 0)
      end
def up? return false unless exist? filename = create_dnsmaqs_config_filename cmd = "/bin/grep #{network_name} #{filename} >/dev/null 2>&1" $log . debug ( "executing cmd=#{cmd}" ) ` #{ cmd } ` ( $CHILD_STATUS == 0 ) end
check if dnsmasq is listening on the network device
check if dnsmasq is listening on the network device