chkconfig exits with a non-zero code.
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.