Is it possible to "repair" a daemon by replacing its underlying file?

Issues related to applications and software problems and general support
Post Reply
thd_4250
Posts: 2
Joined: 2020/06/30 16:16:39

Is it possible to "repair" a daemon by replacing its underlying file?

Post by thd_4250 » 2020/06/30 16:24:35

Hello All,

I am running a packaged CentOS 8 flavor with the kernel: 4.18.0-193.6.3.el8_2

It's essentially a web server running as a guest VM on my VMware player host hypervisor. (Version 15)

I am guilty of not shutting it down properly a couple of times and it seems to have damaged one of its vital services. I am reticent to scrap the VM and build a new one because a unique licence key value is locked into the instance of the web application it serves.

I pretty much signed up to ask if it is possible to replace the file responsible for the daemon. All thoughts and suggestion are welcome!

lightman47
Posts: 1148
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Is it possible to "repair" a daemon by replacing its underlying file?

Post by lightman47 » 2020/06/30 17:18:44

CentOS 8 "flavor"?

That said, I've recovered a few times with "dnf reinstall \*.\*". It takes while because it re-installs everything. Then reboot. No guarantees.
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

thd_4250
Posts: 2
Joined: 2020/06/30 16:16:39

Re: Is it possible to "repair" a daemon by replacing its underlying file?

Post by thd_4250 » 2020/06/30 17:23:51

lightman47 wrote:
2020/06/30 17:18:44
CentOS 8 "flavor"?

That said, I've recovered a few times with "dnf reinstall \*.\*". It takes while because it re-installs everything. Then reboot. No guarantees.
I am very new to Linux OS, pardon the faux pas! Meant to say distro I reckon. ^^

But ok, will look into the command you suggested, cheers!

lightman47
Posts: 1148
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Is it possible to "repair" a daemon by replacing its underlying file?

Post by lightman47 » 2020/06/30 17:34:25

Ah!!!! I've done 'reinstall' a couple times way back after I got brave and changed permissions of system stuff so I could get to it (DON'T!). A package re-install will reset permissions for that package's 'system' files. My instructions will re-install ALL packages.

Hopefully this saves you a 'start over',
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

User avatar
TrevorH
Forum Moderator
Posts: 28831
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Is it possible to "repair" a daemon by replacing its underlying file?

Post by TrevorH » 2020/06/30 19:51:38

Since this appears to be some sort of "appliance", do you even have root access to it to be able to fix problems like this?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”