def _rcconf_status(name, service_status):
    rcconf = '/etc/rc.conf'
    rxname = '^{0}=.*'.format(name)
    newstatus = '{0}={1}'.format(name, service_status)
    ret = __salt__['cmd.retcode']('grep \'{0}\' {1}'.format(rxname, rcconf))
    if ret == 0:  # service found in rc.conf, modify its status
        __salt__['file.replace'](rcconf, rxname, newstatus)
    else:
        ret = __salt__['file.append'](rcconf, newstatus)

    return ret
Returns `COUNT(*)` for given DocType and filters.
dataset/ETHPy150Open saltstack/salt/salt/modules/netbsdservice.py/_rcconf_status--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.count