chkconfig exits with a non-zero code.

Solution In Progress - Updated -

Issue

  • Running a chkconfig [service] command results in a non-zero exit code:

    # chkconfig ntpd ; echo $?
    1
    
  • From the man-page for chkconfig:

       When chkconfig is run with only a service name, it checks to see if  the  service
       is  configured to be started in the current runlevel. If it is, chkconfig returns
       true; otherwise it returns false. The --level option may be used to have  chkcon-
       fig query an alternative runlevel rather than the current one.
    
  • What is causing this to fail?

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content