Add ps command to list processes using deleted binaries and libraries#2290
Add ps command to list processes using deleted binaries and libraries#2290ricardobranco777 wants to merge 1 commit intofreebsd:mainfrom
Conversation
d82bb84 to
0f8110b
Compare
No it's not. needrestart is a separate project that installs apt and dpkg hooks to prompt for this. |
Nice to know. Thanks! |
|
Thanks @grahamperrin @ricardobranco777 you might be interested in https://github.com/Freaky/checkrestart ( |
I saw your tool and noticed that we do the same thing wrt executable mappings. Only 3 pkg commands have support for JSON and they doesn't use libxo. I'm not sure adding yet another dependency would be wise for this simple command. I will look into jails though. What I truly miss in this command is the ability to get service names like with |
|
I am against anty libxo in pkg! now regarding this command I don't like it as a general purpose ps command, if we are to have this, in my opinion it should be via the procstat command. actually I more and more think this command should not belong to pkg, but actually belong to procstat and we should make the service command able to use it/know about it or something like that, a bit like service -R restarts all the running service we could have a service flag which restarts only when needs to be restarted. I can still be convince otherwise |
Pro:
Con:
Having the package manager run |
And I'm not so sure about this one, since this same functionality sometimes fails on both openSUSE and Debian/Ubuntu. This is not trivial to get right. |
|
Another con:
|
|
if you build from ports you use pkg in anycase. |
|
Parallel discussion: https://forums.freebsd.org/threads/93614/ |
From a sysadmin perspective this really sounds like the most convenient way to deal with the underlying "problem". However, it should have a "-n" switch if one can't immediately restart just any service on a production server. While at it - I always wanted an equivalent of OpenBSDs 'rcctl ls failed' command to get a quick list of failed/crashed services... (but thats quite off-topic) |
Add ps command to list processes using deleted binaries and libraries. This functionality is found in package managers such as openSUSE's zypper & Debian's apt (using needrestart plugin).
The command name and output format is inspired by openSUSE's zypper.
To test it:
Ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279404