Results 1 to 2 of 2

Thread: Question regarding chkconfig check mode

  1. #1
    herdhall NNTP User

    Default Question regarding chkconfig check mode

    Typically in other linux operating systems if I enable a service via chkconfig, for instance 'chkconfig auditd on' and then run 'chkconfig auditd' I get a finding of zero when I run the $? after the last chkconfig command. If I run the same sequence of commands except turn the service off I will get a finding of 1 when running $? since the service is off. In OpenSuse I run the same sequence of commands and my output is zero whether the service is turned on or off. Does anyone know why this is??

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Question regarding chkconfig check mode

    It may simply be that there is no standard specifying this behaviour so distros are free to do what they want. The man page says that the return status is only valid when runlevels to check are given to the command, not when the runlevel is not given and defaulted to the current level. I looked but can't find any specification of chkconfig behaviour. Maybe you might have better luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •