Chkconfig Madness CentOS 7

Home » CentOS » Chkconfig Madness CentOS 7
CentOS 3 Comments

I have a couple of in use C7 boxes that were built with ntsysv and chkconfig for some old packages that needed to start using init.d. (The person setting these up didn’t know about systemd creating service files for older packages, so we’re stuck with these as-is. Here’s my problem:

Error unpacking rpm package chkconfig-1.7.2-1.el7.x86_64
error: unpacking of archive failed on file /etc/init.d: cpio: rename chkconfig-1.3.61-4.el7.x86_64 was supposed to be removed but is not!

I can’t update the entire system because of this boondoggle and I can’t come up with a way to resolve this safely on a running system. WTH is going on, and why is this a problem? And how the devil do I fix it?

3 thoughts on - Chkconfig Madness CentOS 7

  • /etc/init.d should be a symlink to /etc/rc.d/init.d. Someone must have created that directory after removing the symlink. You probably need to rename the directory, restore the symlink and move any files in the renamed directory to the correct directory.

  • Well, it was slightly more complicated than that. But yeah, in essence that’s what I needed to do. Unfortunately, the move to systemd is a bloody nightmare and after the systemd-resolved vulnerabilities, I’d pay good money for RH/CentOS to trash that pile of crap.

  • Glad to hear it worked.

    For what its worth, CentOS7 was never affected by that bug, and Red Hat does a fairly good job making systemd halfway sane (like disabling systemd –user and providing systemd helpers for SysV init scripts).

LEAVE A COMMENT