How can I avoid completion using chkconfig on RHEL10?

"Chris Ross (cross2)" <[email protected]> Tue, 24 Feb 2026 18:11:42 +0000
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <MN2PR11MB46456B1DD259744AFBA2F3858C74A@MN2PR11MB4645.namprd11.prod.outlook.com>
Hello. I have installed a RHEL10 system, and installed zsh 5.9 onto it. When trying to complete options for the “service” command, I am prompted whether I want to install “chkconfig”.


cross2@build2 ~ ❯ service auto…Install package 'chkconfig' to provide command 'chkconfig'? [N/y] 
Install package 'chkconfig' to provide command 'chkconfig'? [N/y] 
cross2@build2 ~ ❯ service auto




Looking into this, I find that the definition of _service in zsh’s supplied functions includes a call, when not on FreeBSD, to “chkconfig” without ever validating that it exists.


Google AI says this is a tool "used in older Linux distributions”, although I also see it documented recently on the net. But, certainly in the case of the RHEL10-based system I’m on, there isn’t such a thing. The thinking seems to be that more recent systems use “systemctl” for this, which does make sense.


Anyway. Has this changed already in more recent versions, and if not, I think it should. It should at least confirm that chkconfig is an installed command before invoking it.


Thanks.



* Chris
smime.p7s (application/x-pkcs7-signature, 9.1 KB) - not displayed