code: def _chkconfig_add(name):
      '''
      Run 'chkconfig --add' for a service whose script is installed in
      /etc/init.d.  The service is initially configured to be disabled at all
      run-levels.
      '''
      cmd = '/sbin/chkconfig --add {0}'.format(name)
      if __salt__['cmd.retcode'](cmd, python_shell=False) == 0:
          log.info('Added initscript "%s" to chkconfig', name)
          return True
      else:
          log.error('Unable to add initscript "%s" to chkconfig', name)
          return Falsf _chkconfig_add(name):
      '''
      Run 'chkconfig --add' for a service whose script is installed in
      /etc/init.d.  The service is initially configured to be disabled at all
      run-levels.
      '''
      cmd = '/sbin/chkconfig --add {0}'.format(name)
      if __salt__['cmd.retcode'](cmd, python_shell=False) == 0:
          log.info('Added initscript "%s" to chkconfig', name)
          return True
      else:
          log.error('Unable to add initscript "%s" to chkconfig', name)
          return False
docs: Run 'chkconfig --add' for a service whose script is installed in
      /etc/init.d.  The service is initially configured to be disabled at all
      run-levels.