Does Arch have any tool to check what services needs restart?

Does Arch have any tool to check what services needs restart after software update just like `checkrestart` from Debian flavoured distros or `needs-restarting` from Red Hat ones?

Maybe there is some other temporary file that is not a library but deleted that slips through. I got my awk version now to replace my old hack code.
__pids="$(sudo lsof -F pfn |
awk '
/^n/{
# if this file is a deleted library or binary, show it
if (del == 1 && match($0, "bin|lib")) {
print pid;
del=0;
del = 0;
/^fDEL$/{
# the next file is deleted
del = 1;
/^p/{
# we check a new process
del = 0
pid = substr($0, 2)
}' |
sort -un |
paste -sd ' '
)" && [ -n "$__pids" ] && ps -p "$__pids" && unset __pids || unset __pids
Edit: Reorder logic, don't execute ps if no processes are found.
Last edited by progandy (2014-06-12 16:42:27)

Similar Messages

Maybe you are looking for

  • Error when connecting to form builder

    When I try to connect to form builder ,I get this error message , ORA-12154:TNS: could not resolve service name What is it?

  • Satellite L405 how to remove IE info bar

    Anybody know how to get rid of the new irritating info bar at the bottom of the page, [IE only secure content is displayed]

  • Score Editor: best key commands for attaching symbols?

    Does anyone have suggestions for the best keys or a logical system of what Key Commands to use for attaching Score symbols.. especially these below? [IMG]http://i364.photobucket.com/albums/oo82/dogliege/ScoreEditorKC.jpg[/IMG]

  • Calendar, start_date through end_date

    I'd like to use the calendar to display personnel information (out of office, meetings, training, etc.) These things typically span more than one day, but I do not see anything in the calendar to specify a date range for an "event". Any chance anyone

  • M1212nf fails to initialize after firmware update

    Hello, I have the same problem. The printer keeps re-initializing. Please note that this only happens when we connect it to the ethernet cable. We have replaced cables, switches already, and other devices have no issues on this connection. Any help w