[CentOS] chkconfig madness CentOS 7

Mon Jul 10 20:11:34 UTC 2017
Jonathan Billings <billings at negate.org>



> On Jul 10, 2017, at 10:56, Mark Haney <mark.haney at neonova.net> wrote:
> 
> 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?

/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. 

--
Jonathan Billings <billings at negate.org>